clojure.lang
Class Range

java.lang.Object
  extended by clojure.lang.Obj
      extended by clojure.lang.ASeq
          extended by clojure.lang.Range
All Implemented Interfaces:
Counted, IHashEq, IMeta, IObj, IPersistentCollection, IReduce, ISeq, Seqable, Sequential, Serializable, Iterable, Collection, List

public class Range
extends ASeq
implements IReduce, Counted

See Also:
Serialized Form

Constructor Summary
Range(int start, int end)
           
Range(IPersistentMap meta, int start, int end)
           
 
Method Summary
 int count()
           
 Object first()
           
 ISeq next()
           
 Object reduce(IFn f)
           
 Object reduce(IFn f, Object start)
           
 Obj withMeta(IPersistentMap meta)
           
 
Methods inherited from class clojure.lang.ASeq
add, add, addAll, addAll, clear, cons, contains, containsAll, empty, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

public Range(int start,
             int end)

Range

public Range(IPersistentMap meta,
             int start,
             int end)
Method Detail

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

next

public ISeq next()
Specified by:
next in interface ISeq

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 IReduce

count

public int count()
Specified by:
count in interface Counted
Specified by:
count in interface IPersistentCollection
Overrides:
count in class ASeq


Copyright © 2014. All Rights Reserved.