fp
Class Cons<T>

java.lang.Object
  extended by fp.Cons<T>
All Implemented Interfaces:
ILambda<IList<T>,java.lang.Object>

public class Cons<T>
extends java.lang.Object
implements ILambda<IList<T>,java.lang.Object>

Makes new NEList given a first and rest.


Field Summary
private  IListFactory<T> _fac
           
 
Constructor Summary
Cons(IListFactory<T> fac)
           
 
Method Summary
 IList<T> apply(java.lang.Object... params)
          Creates an INEList with a given first and rest.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_fac

private IListFactory<T> _fac
Constructor Detail

Cons

public Cons(IListFactory<T> fac)
Method Detail

apply

public IList<T> apply(java.lang.Object... params)
Creates an INEList with a given first and rest.

Specified by:
apply in interface ILambda<IList<T>,java.lang.Object>
Parameters:
params[0] - the first element of the IList to be created.
params[1] - IList, the rest of the IList to be created.
Returns:
INEList