4 lines
196 B
Text
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
|