You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kurisu-lambda/lib/loop.klambda

13 lines
309 B

(def loop (lambda (max i statement)
(all
statement
(cond (= i max)
false
(loop max (- i 1) (id statement))))))
(def each
(lambda (it action)
(loop 0 (- (length it) 1)
(id all
(def item (at i it))
action))))