Proposal: Add foldrWithIndex and foldlWithIndex to Data.List
David Feuer
david.feuer at gmail.com
Thu Oct 16 17:21:35 UTC 2014
Actually, that proposal is firmly in the past. Let's *move* foldrWithIndex
and foldlWithIndex from Data.Sequence to Data.Foldable!
On Thu, Oct 16, 2014 at 1:14 PM, David Feuer <david.feuer at gmail.com> wrote:
> These functions can be lifted pretty much straight out of Data.Sequence.
> In particular, foldrWithIndex makes for a particularly nice expression of a
> fusing findIndices function, as is present in Data.Sequence.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20141016/30fb740f/attachment.html>
More information about the Libraries
mailing list