mirror of
https://github.com/janet-lang/janet
synced 2025-11-13 13:57:19 +00:00
Merge remote-tracking branch 'upstream/master' into typed-array
This commit is contained in:
@@ -702,8 +702,8 @@
|
||||
arr)
|
||||
3 (do
|
||||
(def [n m s] args)
|
||||
(def arr (array/new n))
|
||||
(loop [i :range [n m s]] (put arr (- i n) i))
|
||||
(def arr (array/new (math/ceil (/ n s))))
|
||||
(loop [i :range [n m s]] (array/push arr i))
|
||||
arr)
|
||||
(error "expected 1 to 3 arguments to range")))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user