Re: how to compact many maps?
- To: mathgroup at smc.vnet.net
- Subject: [mg70767] Re: how to compact many maps?
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Fri, 27 Oct 2006 00:28:02 -0400 (EDT)
- References: <ehplcu$j9g$1@smc.vnet.net>
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]] ??