purescript-ordered-collections
purescript-ordered-collections copied to clipboard
Add annotateSet
Wanted to make this suggestion isn't forgotten after #31 is merged.
annotateSet :: forall a b. (a -> b) -> Set a -> Map a b
annotateSet f = mapWithIndex (\k _ -> f k) <<< toMap
This would be great. For searchability, this is fromSet in Haskell's containers.