public class PersistentList extends ASeq implements IPersistentList, IReduce, java.util.List, Counted
Modifier and Type | Field and Description |
---|---|
static IFn |
creator |
static clojure.lang.PersistentList.EmptyList |
EMPTY |
Constructor and Description |
---|
PersistentList(java.lang.Object first) |
Modifier and Type | Method and Description |
---|---|
PersistentList |
cons(java.lang.Object o) |
int |
count() |
static IPersistentList |
create(java.util.List init) |
IPersistentCollection |
empty() |
java.lang.Object |
first() |
ISeq |
next() |
java.lang.Object |
peek() |
IPersistentList |
pop() |
java.lang.Object |
reduce(IFn f) |
java.lang.Object |
reduce(IFn f,
java.lang.Object start) |
PersistentList |
withMeta(IPersistentMap meta) |
add, add, addAll, addAll, clear, contains, containsAll, equals, equiv, get, hashCode, hasheq, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, more, remove, remove, removeAll, retainAll, seq, set, size, subList, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equiv
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
public static IFn creator
public static final clojure.lang.PersistentList.EmptyList EMPTY
public static IPersistentList create(java.util.List init)
public java.lang.Object peek()
peek
in interface IPersistentStack
public IPersistentList pop()
pop
in interface IPersistentStack
public int count()
public PersistentList cons(java.lang.Object o)
public IPersistentCollection empty()
empty
in interface IPersistentCollection
empty
in class ASeq
public PersistentList withMeta(IPersistentMap meta)