Re: What is @@@?
- To: mathgroup at smc.vnet.net
- Subject: [mg87229] Re: What is @@@?
- From: "Kevin J. McCann" <Kevin.McCann at umbc.edu>
- Date: Sat, 5 Apr 2008 04:20:35 -0500 (EST)
- Organization: University System of Maryland
- References: <ft2au1$ph5$1@smc.vnet.net> <ft4nc8$43s$1@smc.vnet.net>
Thanks, David.
Kevin
David Park wrote:
> Kevin,
>
> Look at More Information for Apply. Here is an example:
>
> {a, b, c, d}
> step1 = f /@ %
> g @@@ %
> Identity @@@ % giving
>
> {a, b, c, d}
> {f[a], f[b], f[c], f[d]}
> {g[a], g[b], g[c], g[d]}
> {a, b, c, d}
>
> So @@@ is really a shortcut for:
>
> g @@ # & /@ step1
> {g[a], g[b], g[c], g[d]}
>
>
--
Kevin J. McCann
Research Associate Professor
JCET/Physics
Physics Building
University of Maryland, Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250