4 ms·
It's definitely unfortunate that Clojure doesn't ship with pattern matching out of the box, but there's a library that implements pattern matching macros. But
by technomancy 12y ago
It's definitely unfortunate that Clojure doesn't ship with pattern matching out of the box, but there's a library that implements pattern matching macros.
But obviously summing over a list can be done in one line of code in any decent language even without pattern matching.