purescript-ordered-collections
purescript-ordered-collections copied to clipboard
Add `annotateSet` function
Proposing a function to convert a Set to a Map:
annotateSet :: forall a b. (a -> b) -> Set a -> Map a b
annotateSet f = mapWithIndex (\k _ -> f k) <<< toMap
Previously discussed in #31