Skip to content

Instantly share code, notes, and snippets.

@leo60228

leo60228/test.lisp Secret

Last active Dec 16, 2020
Embed
What would you like to do?
(fn first [pred iter inv control]
(let [(control value) (iter inv control)]
(if (= value nil)
nil
(pred value)
value
(first pred iter inv control))))
(fn even [x]
(= (% x 2) 0))
(print (first even (ipairs [1 2 3])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.