MathGroup Archive 2006

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

Search the Archive

Re: how to compact many maps?


Arkadiusz.Majka at gmail.com wrote:
> Hi,
>
> For table of the following structure
>
> tab=Table[{Random[],Random[]},{10},{5}]
>
> I want to apply function f to the second argument of list.
>
> I did:
>
> (MapAt[f, #, 2] & /@ #) & /@ tab
>
> How can I do it in a simpler, more compact way?
> 
> Thanks,
> 
> Arek

tab[[All,All,2]] = f /@ tab[[All,All,2]] ??


  • Prev by Date: GraphPlot
  • Next by Date: Re: how to compact many maps?
  • Previous by thread: Re: how to compact many maps?
  • Next by thread: Re: how to compact many maps?