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