Reducer version of intersection. If src
is given returns the reduced intersection of given inputs, else merely returns a reducer to be used with {@link @thi.ng/transducers#(reduce:1)} / {@link @thi.ng/transducers#(transduce:1)} functions.
Generated using TypeDoc
Computes the intersection of sets
a
andb
and writes results into new set or optionally given setout
(assumed to be empty for correct results). Ifout
is not given, the returned Set type will be that ofa
(provided it definesSymbol.species
).