MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Adding value to some elements of a list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131044] Re: Adding value to some elements of a list
  • From: Ulrich Arndt <ulrich.arndt at data2knowledge.de>
  • Date: Wed, 5 Jun 2013 04:38:58 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20130605072741.946F96A19@smc.vnet.net>

Check MapAt

MapAt[#1 + c &, a, Map[List, b]]

Ulrich

Am 05.06.2013 um 09:27 schrieb Joerg Lenhardt:

> a={10,20,30,40,50,60}
> 
> b={2,4,6}
> 
> c=17




  • Prev by Date: Re: Adding value to some elements of a list
  • Next by Date: Re: Unexpected expectation behaviour
  • Previous by thread: Re: Adding value to some elements of a list
  • Next by thread: Re: Adding value to some elements of a list