Never miss a beat

Join my newsletter.

Tag: threading

Threading Pipelines in Clojure

Published: 12/24/2016

Today we’re going to talk about the thread macro ( -> ) and how to manipulate functions to fit them into your “thread pipeline”. First, let’s figure out what exactly the thread macro is. The Thread Macro If you’ve used -> before, you’ve done some threading. Other languages refer to this as “piping”, although this can be often confused with piping from the command-line. Check out this code (that doesn’t use the threading macro). Now this isn’t complicated, per se, but it could be a bit easier…