Other than map, filter, reduce , of the numerous other functions in clojure core, which are the next set of most useful/commonly used functions that I must learn to be productive ?
If you go to the 4clojure problems page and search for "core-functions", you'll find a bunch that the 4clojure team finds useful. To name a few:
The sequence processing library is a lot of what to me makes Clojure Clojurish. This idea being to have many functions on a single datatype rather than a few functions on a few types. so I would say that learning all the sequence manipulation functions can have a huge benefit.
ps: a special shout out for for
, reductions
, and iterate
The cheatsheet is useful: http://clojure.org/cheatsheet, and doesn't take very long to read.
Your list of map, filter, and reduce covers some of the biggies, so adding to that list would probably duplicate what you already know.
One of Clojure's strengths is synchronization. I would start writing sample code to learn how to use those synchronization constructs, refs, agents, and atoms. A lot of the Clojure books cover it. I know Clojure in Action covers these quite well.
I would work with maps, though I am not specifically referring to a function, but to why maps are good in general as well as multimethods.
Finally, I would work with why you sometimes do need to use loop .. recur. The advice I have gotten over the past 1+ years has been very sound. Use it when you absolutely have to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With