Transposition
Constructs a transposition.
Syntax
transposition(Integer, Integer)
Description
Given two integers and , returns the permutation that maps to , to , and all the other elements remain unchanged. The length of the permutation is given by the maximum of and .