Make combine and tweak menus servicable
This commit is contained in:
+1
-1
@@ -14,4 +14,4 @@ powlist :: [a] -> [[a]]
|
||||
powlist = filterM (const [True,False])
|
||||
|
||||
toMultiset :: Ord a => [a] -> M.Map a Int
|
||||
toMultiset = foldr (uncurry $ M.insertWith (+)) M.empty . map (,1)
|
||||
toMultiset = foldr (uncurry (M.insertWith (+)) . (, 1)) M.empty
|
||||
|
||||
Reference in New Issue
Block a user