DescentSet
The positions where the word falls.
DescentSet(Permutation)The positions where the word falls.Typed signatures
| Type | Package | Applies |
|---|---|---|
(permutation) -> finset | combinatorics | always |
Details
- Takes a
Permutationand returns aFinset— a typed map, so a wrong carrier is a type error rather than a wrong answer. - The statistics Descents and MajorIndex are the size and the sum of this set — which is the reduction worth having: a statistic of a map's output rather than a fresh walk.
Examples
About
| Examples | 1 |
|---|