numeric-prelude-0.1: An experimental alternative hierarchy of numeric type classesSource codeContentsIndex

DiscreteMap was originally intended as a type class that unifies Map and Array. One should be able to simply choose between - Map for sparse arrays - Array for full arrays.

However, the Edison package provides the class AssocX which already exists for that purpose.

Currently I use this module for some numeric instances of Data.Map.

strip :: (Ord i, Eq v, C v) => Map i v -> Map i v
strip :: (Ord i, Eq v, C v) => Map i v -> Map i vSource
Remove all zero values from the map.
Produced by Haddock version 2.4.2