P25 - Generate a random permutation of the elements of a list.
Author: Ryan Connelly
Example
> say permute(<a b c d e>); a e d c b
Source code: P25-topo.pl
use v6; sub permute(@list) { @list.pick(*); } say permute(<a b c d e>);
Author: Ryan Connelly
> say permute(<a b c d e>); a e d c b
Source code: P25-topo.pl
use v6; sub permute(@list) { @list.pick(*); } say permute(<a b c d e>);