Hello list,
Does anyone have a function that when given a list of items, the function will return
all the possible combination sequences.
What I need is something that when given ("a", "b", "c", "d") - it returns:
a
b
c
d
a,b
a,c
a,d
b,c
b,d
c,d
a,b,c
a,c,d
b,c,d
a,b,c,d
It would be nice if you could also pass a number representing all the possible
combinations of x classes in the list. If given the list and 2 - return:
a,b
a,c
a,d
b,c
b,d
c,d
I imagine I'd need recursion but I just can't get my head around this one.
Thanks in advance,
Rich
This communication is for use by the intended recipient and contains
information that may be privileged, confidential or copyrighted under
applicable law. If you are not the intended recipient, you are hereby
formally notified that any use, copying or distribution of this e-mail,
in whole or in part, is strictly prohibited. Please notify the sender
by return e-mail and delete this e-mail from your system. Unless
explicitly and conspicuously designated as "E-Contract Intended",
this e-mail does not constitute a contract offer, a contract amendment,
or an acceptance of a contract offer. This e-mail does not constitute
a consent to the use of sender's contact information for direct marketing
purposes or for transfers of data to third parties.
Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean
http://www.DuPont.com/corp/email_disclaimer.html
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]