I have a list and I need to output each subset of the list

for example a b c d e

would output to

a
b
c
d
e
ab
ac
ad
ae

abc
abd
abe
bcd
bce
....
abcde
I believe the correct term is combination no element should be duplicated on the same line

I was going to attempt this with a series of loops but im not even sure wehre to start

any suggestions?