Reverse a list

J. Landman Gay jacque at hyperactivesw.com
Tue Feb 17 15:59:51 EST 2015


On 2/17/2015 2:11 PM, Mike Kerner wrote:
> Help me with the chunking piece, then.

Put 100 apples in a box.

repeat with x = 1 to 100:
   pick up one apple
   drop it back in the box
   pick up one apple
   pick up a second apple
   drop them both back into the box
   pick up one apple
   pick up a second apple
   pick up a third apple
   drop them all back into the box
   ... continue counting out apples, starting at the beginning each 
time, until you've counted up to 100

repeat for each:
   pick up one apple
   pick up a second apple
   pick up a third apple
   pick up a fourth apple
   ... up to 100


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list