Converts a transposition $(a,b)$ to 1-line notation. maxIdx is the $n$ for which to regard perm as an element of $S_n$, the symmetric group on $n$ letters.
|
|
|
The object toOneLineNotation is a method function.