Skip to content

Twist ​

The first letter swapped for the other.

Twist(BinaryWord)The first letter swapped for the other.
Typed signatures
TypePackageApplies
(binary_word) -> binary_wordcombinatoricsalways

Domain: Combinatorial maps

Details
  • Takes a BinaryWord and returns a BinaryWord — a typed map, so a wrong carrier is a type error rather than a wrong answer.
  • FindStat's Mp00200, an involution.

Examples

Basic #

the binary word 0110001100

live ↗
InTwist(BinaryWord⁡([0,1,1,0,0]))\mathrm{Twist}({\operatorname{BinaryWord}}([0, 1, 1, 0, 0]))OutBinaryWord⁡([1,1,1,0,0]){\operatorname{BinaryWord}}([1, 1, 1, 0, 0])
About
Examples1
CrosswalkFindStat