RosettaCodeData/Task/Power-set/Uiua/power-set-1.uiua
2026-04-30 12:34:36 -04:00

4 lines
196 B
Text

[1 2 3 4] # Input array
⇡+1⊸⧻ # Window sizes for permutations
≡⌟(□≡□⧅<) # Iterate through permutation sizes and box the results
/◇⊂ # Flatten each permutation size