Skip to content

Instantly share code, notes, and snippets.

@frenchy64
Created March 17, 2014 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frenchy64/9602639 to your computer and use it in GitHub Desktop.
Save frenchy64/9602639 to your computer and use it in GitHub Desktop.
(cf (fn [arg] (if (true? arg) 1 "foo"))
[Boolean -> (U Number String)
:filters {:then (| (& (is true 0)
(is Number RET))
(& (is false 0)
(is String RET)))}]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment