Clamps Dictionary
range
Function
(range &rest args)
Like clojure's range: Return a list of nums from start (inclusive) to end (exclusive) by step. Start and step are optional args defaulting to 0 and 1 respectively.
Arities:
(range end)
(range start end)
(range start end step)
Examples
(range 8) ; => (0 1 2 3 4 5 6 7) (range 3 9) ; => (3 4 5 6 7 8) (range 1 10 2) ; => (1 3 5 7 9)
Note
Unlike clozure's range function, this range function is not lazy: As a precaution (range) will return the empty list.
Created: 2025-02-18 Di 12:58