# transduce Reduce a collection through a transducer. ## Syntax
[transduce $xf $rf $init $coll]
## Parameters - `$xf` — Transducer. - `$rf` — Reducing function (`%Reducer` or 2-arg callable). - `$init` — Initial accumulator. - `$coll` — Source collection. ## Examples
def xf [comp [map { ($it * 2) }] [filter is-even]]
[transduce $xf + 0 @{ 1 2 3 4 5}]       # 12 (2+4+6+8+10, all doubled first)
[transduce $xf [completing +] 0 $xs]
## Returns Final accumulated value. Early termination via `%Reduced` is honored. ## See Also `into`, `comp`, `completing`, `reduced`