[commit: containers] master: Add all fold variants. (3351ee0)
Ian Lynagh
igloo at earth.li
Sun Jul 17 17:41:15 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/3351ee0b4c3f7ef3c0d4032fb2dc4189ca8c92ea
>---------------------------------------------------------------
commit 3351ee0b4c3f7ef3c0d4032fb2dc4189ca8c92ea
Author: Milan Straka <fox at ucw.cz>
Date: Wed Jul 13 12:31:39 2011 +0200
Add all fold variants.
Add foldr, foldl, foldr', foldl' to Data.*Set and Data.*Map.
The fold function is in Legacy section and said to be deprecated
and removed in the future.
Also add foldrWithKey, foldlWithKey, foldrWithKey', foldlWithKey
to Data.*Map. The foldWithKey function is in Legacy section and said
to be deprecated and removed in the future.
Data/IntMap.hs | 185 +++++++++++++++++++++++++++++++++++++++++++++++---------
Data/IntSet.hs | 87 +++++++++++++++++++++++---
Data/Map.hs | 136 +++++++++++++++++++++++++++++++----------
Data/Set.hs | 58 ++++++++++++++++-
4 files changed, 389 insertions(+), 77 deletions(-)
Diff suppressed because of size. To see it, use:
git show 3351ee0b4c3f7ef3c0d4032fb2dc4189ca8c92ea
More information about the Cvs-libraries
mailing list