DList<A> |
DList.append(DList<A> other) |
Appends two DLists together to produce a new DList.
|
static <A> DList<A> |
DList.arrayDList(A... as) |
Creates a DList from an array
|
DList<A> |
DList.cons(A a) |
Prepends a single element on the DList to produce a new DList.
|
static <A> DList<A> |
DList.dlist(F<List<A>,Trampoline<List<A>>> f) |
Creates a DList from the function
For alternatives functions to create a DList:
|
static <A> DList<A> |
DList.iterableDList(java.lang.Iterable<A> it) |
Creates a DList from an Iterable
|
static <A> DList<A> |
DList.iteratorDList(java.util.Iterator<A> it) |
Creates a DList from an Iterator
|
static <A> DList<A> |
DList.listDList(List<A> a) |
Creates a DList from a List
|
static <A> DList<A> |
DList.nil() |
A empty DList.
|
static <A> DList<A> |
DList.single(A a) |
Produces a DList with one element.
|
DList<A> |
DList.snoc(A a) |
Appends a single element on the end of the DList to produce a new DList.
|