Like the title says, how can I find all of the ways a list can be divided into three lists? For example 1,2,3 would return
[1, 2, 3]
[1] [2] [3]
[1, 2] [3] [ ]
[1] [2, 3] [ ]
[1, 3] [2] [ ]
I've tried a bunch of stuff but just can't seem to get it. Thanks!