Previous Up Next

5.10.10  Product of two permutations: p1op2

p1op2 takes as arguments two permutations.
p1op2 returns the permutation obtained by composition:

1starg ∘ 2nd arg 

Input:

p1op2([3,4,5,2,0,1],[2,0,1,4,3,5])

Output:

[5,3,4,0,2,1]

Warning
Composition is done using the standard mathematical notation, that is the permutation given as the second argument is performed first.


Previous Up Next