### 5.10.10 Composition of a permutation and a cycle : p1oc2

p1oc2 takes as arguments a permutation and a cycle.

p1oc2 returns the permutation obtained by composition :

Input :

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

Output :

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

Warning

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