Previous Up Next

2.10.9  Composition of a cycle and a permutation : c1op2

c1op2 takes as arguments a cycle and a permutation.
c1op2 returns the permutation obtained by composition :

1starg ∘ 2nd arg 

Input :

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

Output :

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

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


Previous Up Next