BlockSizeComposition
The block sizes of a set partition, its blocks taken in order of their least elements.
BlockSizeComposition(SetPartition)The block sizes of a set partition, its blocks taken in order of their least elements.Typed signatures
| Type | Package | Applies |
|---|---|---|
((set_composition) -> composition) & ((set_partition) -> composition) | combinatorics | always |
Details
- Takes a
SetPartitionand returns aIntegerComposition— a typed map, so a wrong carrier is a type error rather than a wrong answer. - FindStat's Mp00128. Lossy: which elements share a block is forgotten, so it is not a constructor overload.
- Also takes a
SetComposition, returning aIntegerComposition: The block sizes of a set composition, its blocks taken in order. - FindStat's Mp00287. Lossy: which elements share a block is forgotten.
Examples
About
| Examples | 2 |
|---|---|
| Crosswalk | FindStat ×2 |