[Tutor] Can you modify every nth item in a list with a
single assignment?
Bob Gailer
bgailer@alum.rpi.edu
Thu Jun 12 19:45:02 2003
--=======8A0685C=======
Content-Type: text/plain; x-avg-checked=avg-ok-17912FEA; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit
What we need here is a new language feature that lets us provide a sequence
of index values to a list. Something like:
MyList[(1,4,9,23)] = MyList[(1,4,9,23)] + 43
Bob Gailer
bgailer@alum.rpi.edu
303 442 2625
--=======8A0685C=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-17912FEA
Content-Disposition: inline
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/2003
--=======8A0685C=======--