Split
Split a list into runs of identical adjacent elements.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Split✓Split(list)runs of adjacent equal elements.Split(list, test)runs on which adjacent elements agree by a custom two-argument test.Typed signatures
| Type | Package | Applies |
|---|---|---|
(indexed_collection<T>, ((T, T) any -> boolean)?) -> list<list<T>> where T | combinatorics | always |
Details
- Runs, not groups: only ADJACENT equal elements join a run, so the same value can appear in several separate runs. See Gather to group every occurrence together regardless of position.
Examples
Basic #
Applications #
About
| Examples | 16 |
|---|---|
| Checked against | Wolfram Language 16 agree |
| Crosswalk | Wolfram Language |