Threading Macros
Learn to transform Clojure code into a more readable structure that follows a sequential order.
Threading macros
Threading macros is a functionality available in the Clojure core library that’s also a macro, such as the when
macro. Threading converts nested function calls into a linear flow, improving readability and enabling us to visualize and easily understand how the data is flowing from one call to the other. They’re widely used and also known as the Clojure arrows. The functionality aligns with the way our brains think about and understand a process or a dataflow.
Get hands-on with 1200+ tech skills courses.