Open fosskers opened 5 months ago
Solves my issue, but looks like a game of Whac-A-Mole. It should preferably work on all kinds of inputs, not hardcoded to just list and vector. But it's an improvement :+1: Could a generic method be created for determining if which reducer should be used?
Could a generic method be created for determining if which reducer should be used?
I'll look into this. It occurs to me that many (all?) of the foo-transduce
functions may initialise themselves the same way, and then call their inner reducers.
Let's revisit this after I'm back. Thanks for your patience.
This PR enables
concatenate
andflatten
to accept streams of things that aren't just lists. For now I've expanded this to include vectors, which implicitly supports strings as well.yields