lips icon indicating copy to clipboard operation
lips copied to clipboard

Make range function like in Python and Clojure

Open jcubic opened this issue 3 years ago • 1 comments

range should work like in Python or Clojure, but don't allow to call without arguments.

it should have those signatures:

(range end)
(range start end)
(range start end step)

jcubic avatar Jun 01 '22 18:06 jcubic

It should also work with those arguments:

(range 10 0 -1)

it should return:

(10 9 8 7 6 5 4 3 2 1)

jcubic avatar Jul 03 '22 15:07 jcubic