While trying to define a function that creates a sequence of numbers provided a length of the list, I noticed that times does not accept 0 as a number of times to repeat a quote. I'd argue that repeating something 0 times is perfectly valid and useful:
While trying to define a function that creates a sequence of numbers provided a length of the list, I noticed that times does not accept 0 as a number of times to repeat a quote. I'd argue that repeating something 0 times is perfectly valid and useful:
(empty swap dup (pred dup (swons) dip) swap times pop) ^iota
Here is the problem:
Was expecting the empty list as the result
Originally posted by @DanielAjoy in https://github.com/h3rald/min/discussions/175