Skip to content

Instantly share code, notes, and snippets.

Last active Dec 16, 2020
What would you like to do?
(fn first [pred iter inv control]
(let [(control value) (iter inv control)]
(if (= value nil)
(pred 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