http://qs321.pair.com?node_id=554429


in reply to Re: possible combinations in sequence
in thread possible combinations in sequence

My basic idea is to map the array indices to bits in a binary number. If a bit is on, you take that element out of the source array.

This is precisely the same approach that I used in Data::PowerSet, for indeed, what the OP is looking for is the power set of the list.

• another intruder with the mooring in the heart of the Perl