3 ms·
There is core.match[1], and between the restructuring bind, multimethods, and the ability to create polymorphic functions like hello in this example[2], you can
by jarcane 12y ago
There is core.match[1], and between the restructuring bind, multimethods, and the ability to create polymorphic functions like hello in this example[2], you can replicate a lot of common FP idioms reasonably well. It's not pretty, but Clojure generally isn't.
[1] https://github.com/clojure/core.match https://github.com/clojure/core.match
[2] https://github.com/lazerwalker/clojurescript-koans/blob/master/src/koans/meditations/09_runtime_polymorphism.cljs https://github.com/lazerwalker/clojurescript-koans/blob/mast...