Little maths question

Lynch, Jonathan bnz2 at cdc.gov
Mon Sep 12 13:36:29 EDT 2005


Do they have to be in order?

Would 1,4,2,3 also count?

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark Smith
Sent: Monday, September 12, 2005 9:34 AM
To: How to use Revolution
Subject: Little maths question

This is probably really easy, but I'm so stupid when it comes to maths 
that I can't figure it out:

Given a list of any number of lines, how can I generate a list of every 
possible combination of those lines ie.

1
2
3
4

would give:

1
2
3
4
1,2
1,3
1,4
2,3
2,4
3,4
1,2,3
1,3,4
2,3,4
1,2,3,4
(this is from my thick head, so may not be complete, but you get the 
idea...)

Thanks,

Mark

_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list