MCPcopy Index your code
hub / github.com/clojure/clojure / next

Method next

src/jvm/clojure/lang/Range.java:138–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136}
137
138public ISeq next() {
139 if(_next != null)
140 return _next;
141
142 forceChunk();
143 if(_chunk.count() > 1) {
144 IChunk smallerChunk = _chunk.dropFirst();
145 _next = new Range(smallerChunk.nth(0), end, step, boundsCheck, smallerChunk, _chunkNext);
146 return _next;
147 }
148 return chunkedNext();
149}
150
151public IChunk chunkedFirst() {
152 forceChunk();

Callers

nothing calls this directly

Calls 5

forceChunkMethod · 0.95
chunkedNextMethod · 0.95
countMethod · 0.65
dropFirstMethod · 0.65
nthMethod · 0.65

Tested by

no test coverage detected