(Relatiely) fast generator of permutations (8 nanosec/iteration on 2.7 GHz). At least 30% better than straightforward one.

Usage:

var p=new Permutizr(10); // permutting 1, 2, 3, ...10
while (p.next()) {
  // do something with p.list
  print(p.list);
}

Libraries