English |  Español |  Français |  Italiano |  Português |  Русский |  Shqip

Developing a Clojure Edge

Style

Sequences are better than loops


API design


List comprehension

(for [x xs]

 (inc x))

Similar to map but works well with destructuring


piping

letting

doto


tip on <>: think of them as increasing or decreasing, imagine shifting them right.


Function order deserves some thought:

1. order for reduce (aggregate first)

2. order for partial is opposite of most usages (update-in etc)


There has been error in communication with Booktype server. Not sure right now where is the problem.

You should refresh this page.