3 ms·
cond-> doesn't, but some-> short circuits on nil. Similarly, with expressions in Elixir short circuit on a failed pattern match. https://clojuredocs.org/clojur
by networked 9y ago
cond-> doesn't, but some-> short circuits on nil. Similarly, with expressions in Elixir short circuit on a failed pattern match.
https://clojuredocs.org/clojure.core/some-%3E https://clojuredocs.org/clojure.core/some-%3E
https://hexdocs.pm/elixir/Kernel.SpecialForms.html#with/1 https://hexdocs.pm/elixir/Kernel.SpecialForms.html#with/1