Gather
Group identical elements into sublists, in order of first appearance.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Gather✓Gather(list)elements grouped by equality, in first-appearance order.Gather(list, test)elements grouped by a custom two-argument equivalence test.Typed signatures
| Type | Package | Applies |
|---|---|---|
(indexed_collection<T>, ((T, T) any -> boolean)?) -> list<list<T>> where T | combinatorics | always |
Details
Examples
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 9 agree |
| Crosswalk | Wolfram Language |