git.iko.soy/monoidal-containers
on master help sign in
HashMap's `elems` doesn't order returned values

The comment is incorrect, I've replaced it with the one from `Data.HashMap.Strict`

commitf813ee96f327da8dcba554e6d523a25ee3414a95 authorKirill Zaborsky <qrilka@gmail.com> dateFri 22 Jul 2016, 16:35 (10 years ago) parent5208321
1 file changed+1−2
src/Data/HashMap/Monoidal.hs+1−2
src/Data/HashMap/Monoidal.hs+1−2
@@ -152,8 +152,7 @@ delete k = _Wrapping' MM %~ M.delete k
152152{-# INLINE delete #-}
153153
154154-- | /O(n)/.
155−-- Return all elements of the map in the ascending order of their keys.
156−-- Subject to list fusion.
155+-- Return a list of this map's values. The list is produced lazily.
157156elems :: MonoidalHashMap k a -> [a]
158157elems = M.elems . unpack
159158{-# INLINE elems #-}