Skip to content

Instantly share code, notes, and snippets.

@frenchy64
Created August 17, 2013 01:32
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/6254814 to your computer and use it in GitHub Desktop.
Save frenchy64/6254814 to your computer and use it in GitHub Desktop.
fnil
clojure.core/fnil (All [x y z a b ...]
(Fn [[x b ... b -> a] x -> [(U nil x) b ... b -> a]]
[[x y b ... b -> a] x y -> [(U nil x) (U nil y) b ... b -> a]]
[[x y z b ... b -> a] x y z -> [(U nil x) (U nil y) (U nil z) b ... b -> a]]))
@ericnormand
Copy link

That is beautiful!

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment