O'Reilly logo

Clojure Applied by Alex Miller, Ben Vandgrift

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping Up

Clojure collections provide the immutable base for Clojure data, and sequences provide a key abstraction over both collections and any other sequentially traversable data source. We’ve shown the most common means of processing sequential data using both sequence functions and transducers.

Transducers gain better performance and more reusabilility by splitting the sequence-processing model into source iteration, transformation, and output processing such that they can be altered independently. You saw the use of sequence, into, and transduce as three common means of applying transducers to an input source. In future chapters we’ll also show how to apply these same transducer functions in core.async channels.

Now that we’ve modeled ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required