Created
February 5, 2017 02:48
-
-
Save frenchy64/0813bfa09e2d9bed0bdeeb6516688a1d to your computer and use it in GitHub Desktop.
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
(ann even (All [a] | |
(IFn [Int -> Boolean] | |
[(I a (Not Int)) -> (I a (Not Int))]))) | |
(defn even [a] | |
(cond | |
(integer? a) (even? a) | |
:else a)) | |
; (even 1) ; can't type check this yet... WIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment