perm =: ! A.&i. ] NB. all permutations of integers 0 to y comb2 =: (, #: I.@,@(