Skip to content

Complement

Each entry replaced by n + 1 minus itself.

Complement(Permutation)

Domain: Combinatorial maps

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

Examples