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 function #50

Open
milesfrain opened this issue Jul 16, 2021 · 0 comments
Open

Add annotateSet function #50

milesfrain opened this issue Jul 16, 2021 · 0 comments
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

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

@JordanMartinez JordanMartinez added good first issue First-time contributors who are looking to help should work on these issues. type: enhancement A new feature or addition. and removed help wanted labels Nov 30, 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