x, a list, a list of length n whose elements are the numbers 0, 1, 2, ..., n-1, in some order, representing the permutation defined by sending i to x#i
Outputs:
y, a list, the list representing the inverse permutation of x
Description
i1 : x = {1,2,3,4,5,0}
o1 = {1, 2, 3, 4, 5, 0}
o1 : List
i2 : y = inversePermutation x
o2 = {5, 0, 1, 2, 3, 4}
o2 : List