C# 클래스 clojure.lang.StreamSeq

Implements a persistent sequence over a stream.
Caches the stream values as retrieved.
상속: clojure.lang.ASeq
파일 보기 프로젝트 열기: arohner/clojure-contrib

공개 메소드들

메소드 설명
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