clojure.lang
Class LongRange
java.lang.Object
clojure.lang.Obj
clojure.lang.ASeq
clojure.lang.LongRange
- All Implemented Interfaces:
- Counted, IChunkedSeq, IHashEq, IMeta, IObj, IPersistentCollection, IReduce, IReduceInit, ISeq, Seqable, Sequential, Serializable, Iterable, Collection, List
public class LongRange
- extends ASeq
- implements Counted, IChunkedSeq, IReduce
Implements the special common case of a finite range based on long start, end, and step.
- See Also:
- Serialized Form
| Methods inherited from class clojure.lang.ASeq |
add, add, addAll, addAll, clear, cons, contains, containsAll, empty, equals, equiv, get, hashCode, hasheq, indexOf, isEmpty, 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.ISeq |
cons, more |
| Methods inherited from interface clojure.lang.Seqable |
seq |
create
public static ISeq create(long end)
create
public static ISeq create(long start,
long end)
create
public static ISeq create(long start,
long end,
long step)
withMeta
public Obj withMeta(IPersistentMap meta)
- Specified by:
withMeta in interface IObj- Specified by:
withMeta in class Obj
first
public Object first()
- Specified by:
first in interface ISeq
forceChunk
public void forceChunk()
next
public ISeq next()
- Specified by:
next in interface ISeq
chunkedFirst
public IChunk chunkedFirst()
- Specified by:
chunkedFirst in interface IChunkedSeq
chunkedNext
public ISeq chunkedNext()
- Specified by:
chunkedNext in interface IChunkedSeq
chunkedMore
public ISeq chunkedMore()
- Specified by:
chunkedMore in interface IChunkedSeq
count
public int count()
- Specified by:
count in interface Counted- Specified by:
count in interface IPersistentCollection- Overrides:
count in class ASeq
reduce
public Object reduce(IFn f)
- Specified by:
reduce in interface IReduce
reduce
public Object reduce(IFn f,
Object val)
- Specified by:
reduce in interface IReduceInit
iterator
public Iterator iterator()
- Specified by:
iterator in interface Iterable- Specified by:
iterator in interface Collection- Specified by:
iterator in interface List- Overrides:
iterator in class ASeq
Copyright © 2015. All Rights Reserved.