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

Dhall.Map: Change Foldable and Traversable instances to respect the key ordering #1051

Merged
merged 4 commits into from
Jul 2, 2019

Conversation

sjakobi
Copy link
Collaborator

@sjakobi sjakobi commented Jul 2, 2019

Also add a values function.

>>> values (fromList [("B",1),("A",2)])
[1,2]
-}
values :: Ord k => Map k v -> [v]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps call this one elems following the example of Data.Map?

...as suggested by @EggBaconAndSpam
@Gabriella439 Gabriella439 merged commit 0057901 into master Jul 2, 2019
@Gabriella439 Gabriella439 deleted the sjakobi/map-foldable-traversable branch July 2, 2019 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants