transducers-deep-dive
Just a bit of code to play with transducers. Just launch a boot repl
and off you go!
Or better: boot cider repl -s watch refresh
transducers_deep_dive.batch
See accompanying blog post https://medium.com/@chpill_/deep-dive-into-a-clojure-transducer-3d4117784fa6
transducers_deep_dive.stop_when
Creating a stop-when
transducer akin to halt-when
, but that does not
sidetrack the downstream transducers on interruption. I realised after the fact
that I had just impletemented take-while
but with a complement
on the
predicate. The more you know...
transducers_deep_dive.async
Just following along on code examples from a talk on core.async.