Skip to content

Sequence grouped(by:) and keyed(by:) #2078

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

Closed
wants to merge 1 commit into from

Conversation

amomchilov
Copy link
Contributor

@amomchilov amomchilov commented Jun 11, 2023

/// keys that are encountered. The closure returns the desired value for
/// the final dictionary.
func keyed<Key>(
by keyForValue: (Element) -> Key,

Choose a reason for hiding this comment

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

Why is this not also throws?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch. It is in the implementation. I've updated this :)

@rjmccall
Copy link
Contributor

We're going to leave this just in swift-algorithms for the time being, so I'm closing out the evolution PR.

@rjmccall rjmccall closed this Oct 30, 2023
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.

4 participants