Clojure range with a specific start and infinite end -
according docs range
function has 4 forms:
(range)
0 - infinity(range end)
0 - end(range start end)
start - end(range start end step)
start - end skipping step
so how declare range representing x
infinity?
i may asking how reference infinity, (range x infinity)
might work?
(iterate inc x)
give lazy, infinite sequence of numbers starting x
.
Comments
Post a Comment