Open simendsjo opened 5 months ago
Check out the first-pass of the PR I just pushed. I still need to add a proper Condition for when the input isn't a list/vector/string, as well as some unit tests.
Hi there, any thoughts?
Hi there, any thoughts?
I have an alternative which works for all types of sources without hardcoding them: https://github.com/fosskers/cl-transducers/issues/8#issuecomment-2056741427
t:concatenate
is bound to using lists as input, which doesn't make sense when all inputs are vectors and the reducer ist:vector
. Shouldt:concatenate
look atinput
to determine ift:list-reduce
ort:vector-reduce
should be used? Or hardcode knowledge oft:vector
asreducer
to convertinput
to a vector if needed?I just copy/pasted
t:concatenate
to a version usingt:vector-reduce
and use that, but it's a bit dirty.