May 2018
Beginner to intermediate
290 pages
6h 43m
English
In this chapter we looked at decision-making in Clojure. We saw how Clojure sports a straightforward family of logical expressions: everything from the generic if and when to the multiway cond and case. We also explored the sometimes-less-voluntary changes in the flow of your program with try, catch, and throw. But mostly we looked at Clojure’s take on Boolean logic, which counts false and nil as falsy and everything else as truthy.
Now that you’ve tamed the if and plumbed the depths of truth, it’s time to revisit functions and discover that there is much more to them than we’ve seen so far.
Read now
Unlock full access