Clarification regarding use of 1-item transducers

This commit is contained in:
Martin Clausen 2017-04-28 13:25:00 +02:00 committed by GitHub
parent 3bb82ad06d
commit 568f9fe39d

View file

@ -6,7 +6,7 @@ More transducers and reducing functions for Clojure(script)!
*Transducers* (in `net.cgrand.xforms`) can be classified in three groups: regular ones, higher-order ones
(which accept other transducers as arguments) and 1-item ones which emit only 1 item out no matter how many went in.
They generally only make sense in the context of a higher-order transducer.
1-item transducers generally only make sense in the context of a higher-order transducer.
* regular ones: `partition` (1 arg), `reductions`, `for`, `take-last`, `drop-last`, `window` and `window-by-time`
* higher-order ones: `by-key`, `multiplex`, `transjuxt`, `partition` (2+ args)