Ep 061: Transcendental Transformations
► Play EpisodeEach week, we discuss a different topic about Clojure and functional programming.
If you have a question or topic you'd like us to discuss, tweet @clojuredesign, send an email to feedback@clojuredesign.club, or join the #clojuredesign-podcast
channel on the Clojurians Slack.
This week, the topic is: "Transducers." We unpack transducers and find a familiar pattern that enables freedom from collections.
Selected quotes:
- "The humble sequence. It is a mighty abstraction."
- "Your reducing function can get more abstract by passing in the reducing function that handles producing the result."
- "This is mind-bending enough, it's worth saying again in a different way."
- "We have a function that returns a function that returns a function!"
- "The cool thing about reducing functions is that they're not about collections. They are about reduction."
Links:
- Transducers - Reference
- Transducers are Coming - Rich's introductory blog post
- What are good use cases for transducers? - From the Clojure FAQ
- Reducers, transducers and core.async in Clojure