SplitBy
Split a list into runs on which a function is constant.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
SplitBy✓SplitBy(list, f)runs on which stays the same.Typed signatures
| Type | Package | Applies |
|---|---|---|
(indexed_collection<T>, (T) any -> any) -> list<list<T>> where T | combinatorics | always |
Details
- Split with the adjacency test "same value" instead of plain equality.
Examples
Basic #
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 agree |
| Crosswalk | Wolfram Language |