Created
December 8, 2014 06:12
-
-
Save yayitswei/ce4dd59cdb5b6f9aa5be to your computer and use it in GitHub Desktop.
This file contains 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
;; wrap-action should be called for all the defined cases, but not for the default case | |
(case v | |
1 (wrap-action (foo)) | |
2 (wrap-action (bar)) | |
3 (wrap-action (baz)) | |
(qux)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
amalloy:
(if-let [f (case v 1 foo, 2 bar, 3 baz, nil)] (wrap-action (f)) (qux))