Proposal: Add foldrWithIndex and foldlWithIndex to Data.List

David Feuer david.feuer at gmail.com
Thu Oct 16 17:14:08 UTC 2014


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/fe0d39cf/attachment.html>


More information about the Libraries mailing list