Sublist operators
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
Create 2 sublist operators:
[1 2 3 4 5 6] e* -> Gives all possible sublists of the array
[1 2 3 4 5 6] 2 e% -> Gives all possible sublists of length 2 % array_length of the array i.e. [[1 2] [1 3] [1 4] [1 5] [1 6] [2 3] [2 4] [2 5] [2 6] [3 4] [3 5] [3 6] [4 5] [4 6] [5 6]]
Feel free to use other operators than e* or e%