0

All permutations of range from \$1\$ to \$n\$
code-golf
Given a positive input \$n\$, output all permutations of either \$\{0,1,\ldots,n\}\$ or \$\{1,2,\ldots,n\}\$.
Examples
Outputting permutations of \$\{1,2,\ldots,n\}\$.
Input|Output
-|-
1|[(1)]
2|[(1, 2), (2, 1)]
4|[(1, 2, 3, 4), (1, 2, 4, 3)...