flâneur — a map of the web's best reading

Clean Coder Blog

blog.cleancoder.com · 1,172 words · saved by 1 readers

This expression: (1 2) represents the list containing the integers 1 and 2 in that order. If you want an empty list, that’s just (). And the list of the first five letters of the alphabet is just (\a \b \c \d \e).

So let’s learn just a little bit of clojure. This expression: (1 2) represents the list containing the integers 1 and 2 in that order. If you want an empty list, that’s just () . And the list of the first five letters of the alphabet is just (\a \b \c \d \e) . Now you know a lot about the syntax of clojure. Perhaps you think there’s a lot missing. Well, there are a few things missing; but far fewer than you’d think. You might be wondering how you add two numbers. That’s easy, that’s just (+ 1 2) . As it happens that’s also just the list of the function named + followed by a 1 and a 2. You see,

Explore this link on the map →

saved by

related reading