C# Class clojure.lang.LazyCons

A cons cell constructed lazily by a call to an IFn.
The 'first' is computed by calling f(). The 'rest' is computed by calling f(null).
Inheritance: clojure.lang.ASeq
Afficher le fichier Open project: arohner/clojure-contrib Class Usage Examples

Protected Properties

Свойство Type Description
_f IFn
_first object
_rest ISeq

Méthodes publiques

Méthode Description
LazyCons ( IFn f ) : System

Construct a lazy cons on a function.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Private Methods

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

Construct a lazy cons on a function, with attached metadata.

first ( ) : object
rest ( ) : ISeq

Method Details

LazyCons() public méthode

Construct a lazy cons on a function.
public LazyCons ( IFn f ) : System
f IFn The function that will create first/rest.
Résultat System

withMeta() public méthode

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

Property Details

_f protected_oe property

The function generating the first and rest.
protected IFn _f
Résultat IFn

_first protected_oe property

The first item of the sequence, when computed.
protected object _first
Résultat object

_rest protected_oe property

The rest of the sequence, when computed.
protected ISeq _rest
Résultat ISeq