Skip to content

TouchComposition ​

The semilengths of the primitive pieces between a path's returns to the diagonal.

TouchComposition(DyckPath)The semilengths of the primitive pieces between a path's returns to the diagonal.
Typed signatures
TypePackageApplies
(dyck_path) -> compositioncombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a DyckPath and returns a IntegerComposition — a typed map, so a wrong carrier is a type error rather than a wrong answer.

Examples

Basic #

the Dyck path UUDDUDUUDDUD

live ↗
InTouchComposition(DyckPath⁡([1,1,0,0,1,0]))\mathrm{TouchComposition}({\operatorname{DyckPath}}([1, 1, 0, 0, 1, 0]))OutIntegerComposition⁡([2,1]){\operatorname{IntegerComposition}}([2, 1])
About
Examples1
CrosswalkFindStat