C# Class clojure.lang.CachedSeq

Represents a sequence with cached values.
Built on top of another sequence that might be infinite or otherwise lazy. Caches the first/rest values if they are computed.
Inheritance: clojure.lang.ASeq
显示文件 Open project: arohner/clojure-contrib

Public Methods

Method Description
CachedSeq ( object s ) : System

Initialize from an arbitray object (must be seq-able).

rest ( ) : ISeq

Gets the rest of the sequence.

withMeta ( IPersistentMap m ) : IObj

Create a copy with new metadata.

Private Methods

Method Description
CachedSeq ( IPersistentMap meta, object first, ISeq rest ) : System

Initialize from first/rest, with metadata.

first ( ) : object

Method Details

CachedSeq() public method

Initialize from an arbitray object (must be seq-able).
public CachedSeq ( object s ) : System
s object The object to cache.
return System

rest() public method

Gets the rest of the sequence.
public rest ( ) : ISeq
return ISeq

withMeta() public method

Create a copy with new metadata.
public withMeta ( IPersistentMap m ) : IObj
m IPersistentMap
return IObj