HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulenumeric-prelude-0.4.4Haskell98

MathObj.DiscreteMap

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.

  • 1 value
valuestrip :: (Ord i, Eq v, C v) => Map i v -> Map i v
#

Remove all zero values from the map.

Orphan instances

8 instances