C# Class clojure.lang.Cons

Implements an immutable cons cell.
Inheritance: clojure.lang.ASeq
Afficher le fichier Open project: arohner/clojure-contrib Class Usage Examples

Méthodes publiques

Méthode Description
Cons ( IPersistentMap meta, object first, ISeq rest ) : System

Initializes a Cons with the given metadata and first/rest.

Cons ( object first, ISeq rest ) : System

Initializes a Cons with null metadata and given first/rest.

first ( ) : Object

Gets the first item.

rest ( ) : ISeq

Gets the rest of the sequence.

seq ( ) : ISeq

Gets an ISeq to allow first/rest iteration through the collection.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Method Details

Cons() public méthode

Initializes a Cons with the given metadata and first/rest.
public Cons ( IPersistentMap meta, object first, ISeq rest ) : System
meta IPersistentMap The metadata to attach.
first object The first value.
rest ISeq The rest of the sequence.
Résultat System

Cons() public méthode

Initializes a Cons with null metadata and given first/rest.
public Cons ( object first, ISeq rest ) : System
first object The first value.
rest ISeq The rest of the sequence.
Résultat System

first() public méthode

Gets the first item.
public first ( ) : Object
Résultat Object

rest() public méthode

Gets the rest of the sequence.
public rest ( ) : ISeq
Résultat ISeq

seq() public méthode

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
Résultat ISeq

withMeta() public méthode

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
Résultat IObj