mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-26 04:27:48 +00:00
- Restructure the project README, moving the list of guides into a README in the `Guides` directory - Curate the `keyed(by:)` and `grouped(by:)` methods
15 lines
325 B
Markdown
15 lines
325 B
Markdown
# Keying and Grouping
|
|
|
|
Convert a sequence to a dictionary, providing keys to individual elements or to use as grouping values.
|
|
|
|
## Topics
|
|
|
|
### Creating a Keyed Dictionary
|
|
|
|
- ``Swift/Sequence/keyed(by:)``
|
|
- ``Swift/Sequence/keyed(by:resolvingConflictsWith:)``
|
|
|
|
### Grouping Elements by Key
|
|
|
|
- ``Swift/Sequence/grouped(by:)``
|