transduce
Last updated
Was this helpful?
Last updated
Was this helpful?
Executes a transducer to transform the observable sequence.
Transducers are composable algorithmic transformations. They are independent from the context of their input and output sources and specify only the essence of the transformation in terms of an individual element. Because transducers are decoupled from input or output sources, they can be used in many different processes such as Observable sequences. Transducers compose directly, without awareness of input or creation of intermediate aggregates.
Such examples of transducers libraries are from Cognitect and from James Long.
In order for this operator to work, it must the transducers library must follow the following contract:
transducer
(Transducer
): A transducer to execute.
(Observable
): An observable sequence that results from the transducer execution.
Below is an example using .