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

Method create

src/jvm/clojure/lang/LongRange.java:56–66  ·  view source on GitHub ↗
(long end)

Source from the content-addressed store, hash-verified

54}
55
56public static ISeq create(long end) {
57 if(end > 0) {
58 try {
59 return new LongRange(0L, end, 1L, Math.toIntExact(rangeCount(0L, end, 1L)));
60 } catch(ArithmeticException e) {
61 return Range.create(end); // count > Integer.MAX_VALUE
62 }
63 } else {
64 return PersistentList.EMPTY;
65 }
66}
67
68public static ISeq create(long start, long end) {
69 if(start >= end) {

Callers 1

chunkedMoreMethod · 0.95

Calls 3

rangeCountMethod · 0.95
createMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected