All Subsequents

Given an list return an list of lists containing all subsequent combinations of that list.
Sample Case 1:
[1,2,3]
[[1],[2],[3],[1,2],[2,3],[1,2,3]]
Sample Case 2:
[]
[]
Sample Case 3:
[1]
[1]

Comments (0)