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
Datei anzeigen Open project: arohner/clojure-contrib Class Usage Examples

Protected Properties

Property Type Description
_f IFn
_first object
_rest ISeq

Public Methods

Method Description
LazyCons ( IFn f ) : System

Construct a lazy cons on a function.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Private Methods

Method 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 method

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

withMeta() public method

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

Property Details

_f protected_oe property

The function generating the first and rest.
protected IFn _f
return IFn

_first protected_oe property

The first item of the sequence, when computed.
protected object _first
return object

_rest protected_oe property

The rest of the sequence, when computed.
protected ISeq _rest
return ISeq