clojure.lang
Class Range
java.lang.Object
clojure.lang.Obj
clojure.lang.ASeq
clojure.lang.Range
- All Implemented Interfaces:
- Counted, IMeta, IObj, IPersistentCollection, IReduce, ISeq, Seqable, Sequential, java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
public class Range
- extends ASeq
- implements IReduce, Counted
- 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, more, 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 |
Range
public Range(int start,
int end)
Range
public Range(IPersistentMap meta,
int start,
int end)
withMeta
public Obj withMeta(IPersistentMap meta)
- Specified by:
withMeta
in interface IObj
- Specified by:
withMeta
in class Obj
first
public java.lang.Object first()
- Specified by:
first
in interface ISeq
next
public ISeq next()
- Specified by:
next
in interface ISeq
reduce
public java.lang.Object reduce(IFn f)
- Specified by:
reduce
in interface IReduce
reduce
public java.lang.Object reduce(IFn f,
java.lang.Object start)
- Specified by:
reduce
in interface IReduce
count
public int count()
- Specified by:
count
in interface Counted
- Specified by:
count
in interface IPersistentCollection
- Overrides:
count
in class ASeq
Copyright © 2011. All Rights Reserved.