Created
June 19, 2016 04:24
-
-
Save timmc/d5e4bfdf2152be9624cf874aeb959ee2 to your computer and use it in GitHub Desktop.
even or odd in swearjure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Apologies for the quasi-swearjure | |
(#(((% 1) :main) %) | |
[9 | |
{:main #(((% 1) :count-up) [(% 0) (% 1) 0 true]), | |
:count-up #(if (= (% 0) (% 2)) | |
(% 3) | |
(((% 1) :count-up) [(% 0) (% 1) | |
(+ 1 (% 2)) | |
(if (% 3) false true)]))}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment