Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add annotateSet #32

Open
milesfrain opened this issue Sep 7, 2020 · 1 comment
Open

Add annotateSet #32

milesfrain opened this issue Sep 7, 2020 · 1 comment
Labels
good first issue First-time contributors who are looking to help should work on these issues. type: enhancement A new feature or addition.

Comments

@milesfrain
Copy link
Contributor

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
@darichey
Copy link

This would be great. For searchability, this is fromSet in Haskell's containers.

@JordanMartinez JordanMartinez added type: enhancement A new feature or addition. good first issue First-time contributors who are looking to help should work on these issues. labels Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue First-time contributors who are looking to help should work on these issues. type: enhancement A new feature or addition.
Projects
None yet
Development

No branches or pull requests

3 participants