ŒṖ - Partition
Tags: miscellaneous , math , array , combinatorics
This atom is monadic, which means it takes one argument.
Partition a list; all ways to split into contiguous sublists.
The partition of
z is the list of all ways to divide
z into sublists. For example,
3R ŒṖ returns
[[, , ], [, [2, 3]], [[1, 2], ], [[1, 2, 3]]]. The partition of the empty list is the empty list; if you want
Œb (Partition (Non-Empty)).