Pastable version of Computing permutations with a recursive generator expression