Anatomy of a Reducer (opens in new tab)
Last time, I blogged about Clojure’s new . This time I’d like to look at the details of what constitutes a reducer, as well as some background about the library. What’s a Reducing Function? The reducers library is built around transforming reducing functions. A reducing function is simply a binary function, akin to the one you might pass to reduce. While the two arguments might be treated symmetrically by the function, there is an implied semantic that distinguishes the arguments: the first a...
Read the original article