RunComposition
The lengths of the maximal runs of equal letters, left to right.
FindStat
Mp00097via BinaryWordRunComposition(BinaryWord)The lengths of the maximal runs of equal letters, left to right.Typed signatures
| Type | Package | Applies |
|---|---|---|
(binary_word) -> composition | combinatorics | always |
Details
- Takes a
BinaryWordand returns aIntegerComposition— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00097, the delta morphism. Lossy: it forgets the first letter, so each composition has two words.
Examples
About
| Examples | 1 |
|---|---|
| Crosswalk | FindStat |