conditionals on lists
- To: mathgroup at smc.vnet.net
- Subject: [mg79088] conditionals on lists
- From: mausgeo at aol.com
- Date: Wed, 18 Jul 2007 02:57:54 -0400 (EDT)
I am trying to run a simulation of a roulette game and I have created a list of 1's and -1's to represent wins and losses. Using the Split command I can get ordered pairs with the first coordinate being either 1 or -1 and the second coordinate being the number of successive entries. I am having trouble applying a conditional to this new list as I would like to perform a different function depending on the first coordinate of the ordered pair. How do I apply a conditional to a list of ordered pairs?
- Follow-Ups:
- Re: conditionals on lists
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: conditionals on lists