Clojure’s cond-> (and cond->>) is a versatile macro. It isn’t a new macro, it has been around since version 1.5, but I finally discovered and started using it sometime last year. It isn’t a workhorse macro, you won’t be using it everyday, but it comes in handy. What is cond->? Let’s start by looking at the docstring. Usage: (cond-> expr & clauses) Takes an expression and a set of test/form pairs.