RosettaCodeData/Task/Permutations/Quackery/permutations-2.quackery
2023-07-01 13:44:08 -04:00

8 lines
226 B
Text

[ ' [ [ ] ] swap times
[ [] i rot witheach
[ dup size 1+ times
[ 2dup i^ stuff
dip rot nested join
unrot ] drop ] drop ] ] is perms ( n --> [ )
4 perms witheach [ echo cr ]