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

Implements a persistent sequence over a stream.
Caches the stream values as retrieved.
Наследование: clojure.lang.ASeq
Показать файл Открыть проект

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

Метод Описание
create ( IStream stream ) : StreamSeq

Create a sequence from a stream.

Requires looking at the first element of the stream. This is so that we know if the stream has any elements. This is so because the sequence must have at least element or be null.

first ( ) : object

Gets the first item.

rest ( ) : ISeq

Gets the rest of the sequence.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Приватные методы

Метод Описание
StreamSeq ( IPersistentMap meta, Object first, ISeq rest ) : System

Construct a StreamSeq from metadata and first/rest.

StreamSeq ( object first, IStream stream ) : System

Construct a StreamSeq from a first item and a stream.

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

create() публичный статический Метод

Create a sequence from a stream.
Requires looking at the first element of the stream. This is so that we know if the stream has any elements. This is so because the sequence must have at least element or be null.
public static create ( IStream stream ) : StreamSeq
stream IStream The stream to sequence.
Результат StreamSeq

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

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

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

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

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

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