Open tchoutri opened 3 years ago
I pretty sure it should be possible to get an efficient version implemented of this at the stream level. In fact, here is a drop in implementation for it from text
:
We should really unify streaming functions from text
with vector
into a single package. Have no clue how much work that would be though.
I mark this issue "help-wanted". Contributions are welcome
I would like to suggest the addition of
intersperse :: a -> Vector a -> Vector a
to the API.I have a prototype that I reuse in my projects, that reads:
But I would be interested to know if a better implementation is possible.