C# Class clojure.lang.FnSeq

A sequence that computes its first/rest from functional calls. Caches.
Inheritance: clojure.lang.ASeq
Show file Open project: arohner/clojure-contrib Class Usage Examples

Protected Properties

Property Type Description
_first object
_rest ISeq
_restFn IFn

Public Methods

Method Description
FnSeq ( object first, object restFn ) : System

Initialize from given first and a restFn.

first ( ) : object

Gets the first item.

withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Private Methods

Method Description
FnSeq ( IPersistentMap meta, object first, IFn restFn, ISeq rest ) : System

Initialize from given metatadata, plus first, restFn, rest.

rest ( ) : ISeq

Method Details

FnSeq() public method

Initialize from given first and a restFn.
public FnSeq ( object first, object restFn ) : System
first object
restFn object
return System

first() public method

Gets the first item.
public first ( ) : object
return object

withMeta() public method

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

Property Details

_first protected property

The first item.
protected object _first
return object

_rest protected property

The rest of the sequence.
protected ISeq _rest
return ISeq

_restFn protected property

Function to compute first/rest.
protected IFn _restFn
return IFn