RosettaCodeData/Task/Permutations/Quackery/permutations-2.quackery

9 lines
226 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
[ ' [ [ ] ] 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 ]