|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfp.Cons2<T>
public class Cons2<T>
Makes new NEList given a first and rest. Use binary lambda.
| Field Summary | |
|---|---|
(package private) IListFactory<T> |
_fac
|
| Constructor Summary | |
|---|---|
Cons2(IListFactory<T> fac)
|
|
| Method Summary | |
|---|---|
IList<T> |
apply(T first,
IList<T> rest)
Creates an NEList 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 |
|---|
IListFactory<T> _fac
| Constructor Detail |
|---|
public Cons2(IListFactory<T> fac)
| Method Detail |
|---|
public IList<T> apply(T first,
IList<T> rest)
apply in interface ILambda2<IList<T>,T,IList<T>>first - the first element of the IList to be created.rest - an IList, the rest of the IList to be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||