(long end)
| 54 | } |
| 55 | |
| 56 | public 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 | |
| 68 | public static ISeq create(long start, long end) { |
| 69 | if(start >= end) { |
no test coverage detected