Pike v8.1 release 6

Method Array.permute()


Method permute

array permute(array in, int(0..) number)

Description

Give a specified permutation of an array.

The number of permutations is equal to sizeof(in)! (the factorial of the size of the given array).

See also

shuffle()