Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.MultiSet

Description

Simple multiset implementation.

Yes, there's one on hackage, but it breaks on new ghcs.

Documentation

type MultiSet k = Map k Int Source #

insert :: Ord k => k -> MultiSet k -> MultiSet k Source #

lookup :: Ord k => k -> MultiSet k -> Int Source #