bimap icon indicating copy to clipboard operation
bimap copied to clipboard

Make Bimap return Sets when appropriate

Open recursion-ninja opened this issue 7 years ago • 1 comments

It would be nice if keys and keysR returned Set a instead of [a] by using the Data.Map.keysSet function. Set's are often preferable and this conversion would have a smaller constant factor than Set.fromListAsc . toMap. Plus there's always elems for getting the [a] type.

recursion-ninja avatar Feb 22 '19 14:02 recursion-ninja

I would rather have new functions Bimap.keysSet and Bimap.keysSetR so that we can maintain backward compatibility and keep matching the interface of Prelude's Maps

joelwilliamson avatar Apr 30 '19 01:04 joelwilliamson