Re: Modifying List Elements.
- To: mathgroup at smc.vnet.net
- Subject: [mg99000] Re: [mg98948] Modifying List Elements.
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 23 Apr 2009 06:46:05 -0400 (EDT)
- Reply-to: hanlonr at cox.net
data = {{0, 1}, {1, 2}}; {0, 0.5} + # & /@ data {{0, 1.5}, {1, 2.5}} Bob Hanlon ---- nick.maj at mssm.edu wrote: ============= how can i add a value to an element in lists? data: {{0,1},{1,2}} needed output: {{0,1.5},{1,2.5}} thanks in advance, nick.