clojure.lang
Class PersistentList
java.lang.Object
clojure.lang.Obj
clojure.lang.ASeq
clojure.lang.PersistentList
- All Implemented Interfaces:
- Counted, IHashEq, IMeta, IObj, IPersistentCollection, IPersistentList, IPersistentStack, IReduce, IReduceInit, ISeq, Seqable, Sequential, Serializable, Iterable, Collection, List
public class PersistentList
- extends ASeq
- implements IPersistentList, IReduce, List, Counted
- See Also:
- Serialized Form
Field Summary |
static IFn |
creator
|
static clojure.lang.PersistentList.EmptyList |
EMPTY
|
Methods inherited from class clojure.lang.ASeq |
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 |
Methods inherited from class clojure.lang.Obj |
meta |
Methods inherited from interface clojure.lang.Seqable |
seq |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
creator
public static IFn creator
EMPTY
public static final clojure.lang.PersistentList.EmptyList EMPTY
PersistentList
public PersistentList(Object first)
create
public static IPersistentList create(List init)
first
public Object first()
- Specified by:
first
in interface ISeq
next
public ISeq next()
- Specified by:
next
in interface ISeq
peek
public Object peek()
- Specified by:
peek
in interface IPersistentStack
pop
public IPersistentList pop()
- Specified by:
pop
in interface IPersistentStack
count
public int count()
- Specified by:
count
in interface Counted
- Specified by:
count
in interface IPersistentCollection
- Overrides:
count
in class ASeq
cons
public PersistentList cons(Object o)
- Specified by:
cons
in interface IPersistentCollection
- Specified by:
cons
in interface ISeq
- Overrides:
cons
in class ASeq
empty
public IPersistentCollection empty()
- Specified by:
empty
in interface IPersistentCollection
- Overrides:
empty
in class ASeq
withMeta
public PersistentList withMeta(IPersistentMap meta)
- Specified by:
withMeta
in interface IObj
- Specified by:
withMeta
in class Obj
reduce
public Object reduce(IFn f)
- Specified by:
reduce
in interface IReduce
reduce
public Object reduce(IFn f,
Object start)
- Specified by:
reduce
in interface IReduceInit
Copyright © 2016. All Rights Reserved.