Hi guys,

I need some help with generating a list of combinations. I have a list and I want a list of combinations -1 term then all the combinations-2 terms etc.

for example if I have
A
B
C
D
E

I want an output of;
B,C,D,E
A,C,D,E
A,B,D,E
A,B,C,E
A,B,C,D
and then the combinations if 2 terms are removed;
C,D,E
B,D,E
B,C,E
B,C,D
A,D,E
A,C,E
A,C,D
A,B,E
A,B,D
A,B,C
then 3 etc.
The order within the combinations doesn't matter.

I hope this makes sense.
any help would be really appreciated.