GatherBy
Group elements by the value of a function, in order of first appearance.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
GatherBy✓GatherBy(list, f)elements grouped by , in first-appearance order.Typed signatures
| Type | Package | Applies |
|---|---|---|
(indexed_collection<T>, (T) any -> any) -> list<list<T>> where T | combinatorics | always |
Details
- Gather with the equivalence "same value" instead of plain equality.
Examples
Basic #
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 6 agree |
| Crosswalk | Wolfram Language |