Proposal: add intersperse and intercalate to Data.Sequence

Edward Kmett ekmett at gmail.com
Sat Dec 27 20:54:44 UTC 2014


+1 from me.

Interestingly, it strikes me that the fingertree version of intercalate
could be made more efficient, even if the sequence version can't.

-Edward

On Sat, Dec 27, 2014 at 3:45 PM, David Feuer <david.feuer at gmail.com> wrote:

> It seems there's enough interest to make it official. The usual two-week
> period begins now.
>
> Intersperse can be given very pleasant performance characteristics for
> sequences: the result can constructed incrementally as it is consumed.
> Intercalate cannot perform so pleasantly, but it seems odd to add one but
> not the other.
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141227/2f47808a/attachment.html>


More information about the Libraries mailing list