This function composes two permutations or a permutation with a collection of permutations.
If one of the arguments is a collection of permutations, the function will compose each permutation
in the collection with the other argument. Note that both arguments cannot be collections of permutations
at the same time.
Usage
compose(perm1, perm2)
Value
The composition of the permutations. If one of the arguments is a collection, the result will be
a list of composed permutations.
Arguments
perm1
A single permutation (as a vector) or a collection of permutations (as a list of vectors).
perm2
A single permutation (as a vector) or a collection of permutations (as a list of vectors).