clojure.lang
Class Cons
java.lang.Object
clojure.lang.Obj
clojure.lang.ASeq
clojure.lang.Cons
- All Implemented Interfaces:
- IMeta, IObj, IPersistentCollection, ISeq, Seqable, Sequential, java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
public final class Cons
- extends ASeq
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class clojure.lang.ASeq |
add, add, addAll, addAll, clear, cons, contains, containsAll, empty, equals, equiv, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, seq, set, size, subList, toArray, toArray, toString |
Methods inherited from class clojure.lang.Obj |
meta |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Cons
public Cons(java.lang.Object first,
ISeq _more)
Cons
public Cons(IPersistentMap meta,
java.lang.Object _first,
ISeq _more)
first
public java.lang.Object first()
- Specified by:
first
in interface ISeq
next
public ISeq next()
- Specified by:
next
in interface ISeq
more
public ISeq more()
- Specified by:
more
in interface ISeq
- Overrides:
more
in class ASeq
count
public int count()
- Specified by:
count
in interface IPersistentCollection
- Overrides:
count
in class ASeq
withMeta
public Cons withMeta(IPersistentMap meta)
- Specified by:
withMeta
in interface IObj
- Specified by:
withMeta
in class Obj
Copyright © 2011. All Rights Reserved.