| Modifier and Type | Method and Description |
|---|---|
Cons<E> |
Cons.cons(E head)
Prepend an element to this list.
|
static <E> Cons<E> |
Cons.cons(E head,
Cons<E> tail)
Create a list from an existing list and an element (push to the front of
the list, returns the new list).
|
static <E> Cons<E> |
Cons.empty()
The empty list.
|
static <E> Cons<E> |
Cons.fromArray(E... array)
Create a list from an existing array.
|
Cons<E> |
Cons.getSecond() |
static <E> Cons<E> |
Cons.singleton(E value)
Creates a list with one element.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> Cons<E> |
Cons.cons(E head,
Cons<E> tail)
Create a list from an existing list and an element (push to the front of
the list, returns the new list).
|
Copyright © 2015. All rights reserved.