Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick & Easy 1 to 'n' routine?
Message
From
20/02/2000 19:12:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Quick & Easy 1 to 'n' routine?
Miscellaneous
Thread ID:
00334657
Message ID:
00334657
Views:
50
Hey all,

I'm looking for a quick & easy, 1 to 'n' type routine.

For example, if I have a list, 'A,B,C,D,E,F,G,H' the routine would return all combinations. Essentially returning n^(n-1) combinations. I don't mind writing it but I was just wondering if one had already been done....

Example:
'A,B,C,D,E,F,H,G'
'A,B,C,D,E,H,G,F'
'A,B,C,D,H,G,F,E'

etc...

Thanks!

DD
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Reply
Map
View

Click here to load this message in the networking platform