C# Класс clojure.lang.Cons

Implements an immutable cons cell.
Наследование: clojure.lang.ASeq
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Cons() публичный Метод

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.
Результат System

Cons() публичный Метод

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.
Результат System

first() публичный Метод

Gets the first item.
public first ( ) : Object
Результат Object

rest() публичный Метод

Gets the rest of the sequence.
public rest ( ) : ISeq
Результат ISeq

seq() публичный Метод

Gets an ISeq to allow first/rest iteration through the collection.
public seq ( ) : ISeq
Результат ISeq

withMeta() публичный Метод

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
Результат IObj