MathGroup Archive 2006

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

Search the Archive

Re: List Help Needed


On 21 ago 2006, at 09:27, Nimrod wrote:

> What combination of Map, MapAt, ...
>
> will transform {{a,b},{c,d},...} to {{a,f[b]},{c,f[d]},...}
>
> Thanks in advance.
>
> Nimrod
>

MapAt[f, #, 2] & /@ {{a, b}, {c, d}, {e, f}} gives
{{a, f[b]}, {c, f[d]}, {e, f[f]}}

Adriano Pascoletti


  • Prev by Date: Re: List Help Needed
  • Next by Date: Re: List Help Needed
  • Previous by thread: Re: List Help Needed
  • Next by thread: Re: List Help Needed