[commit: containers] master: Improve {Map, IntMap}.intersection* and its tests. (0aaac52)

Paolo Capriotti p.capriotti at gmail.com
Tue May 8 00:55:06 CEST 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/0aaac529f4c37b88180e6f0e6b8fbc160d09ebc2

>---------------------------------------------------------------

commit 0aaac529f4c37b88180e6f0e6b8fbc160d09ebc2
Author: Milan Straka <fox at ucw.cz>
Date:   Sat Mar 3 11:28:18 2012 +0100

    Improve {Map,IntMap}.intersection* and its tests.
    
    * Add tests for intersectionWith*.
    * Add specific Map.intersection implementation instead of using
      Map.intersectionWithKey.
    * Refactor Map.intersectionWithKey implementatioin.

 Data/Map/Base.hs           |   32 ++++++++++++++++++--------------
 Data/Map/Strict.hs         |   19 +++++++------------
 tests/intmap-properties.hs |   18 ++++++++++++++++++
 tests/map-properties.hs    |   26 ++++++++++++++++++++++++++
 4 files changed, 69 insertions(+), 26 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 0aaac529f4c37b88180e6f0e6b8fbc160d09ebc2



More information about the Cvs-libraries mailing list