Simple Question -- Incrementing All Elemnts in A list by 1
- To: mathgroup at smc.vnet.net
- Subject: [mg44290] Simple Question -- Incrementing All Elemnts in A list by 1
- From: "Thiery Balser" <thiery.balser at gmx.net>
- Date: Tue, 4 Nov 2003 03:24:14 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I'm sort of stuck. I would like to have all elements in a list incremted by a given number without defining a supplementary function. What I've done so far is: incFunc[n_]:=n+1; Map[incFunc,{2,3,4,45,98}] which is all fine. It is only that I'm looking for a solution _without_ defining the mentioned function incFunc. Thanks in advance, Thiery
- Follow-Ups:
- Re: Simple Question -- Incrementing All Elemnts in A list by 1
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Simple Question -- Incrementing All Elemnts in A list by 1
- From: Tomas Garza <tgarza01@prodigy.net.mx>
- Re: Simple Question -- Incrementing All Elemnts in A list by 1
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Simple Question -- Incrementing All Elemnts in A list by 1