Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

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


  • Prev by Date: Re: Colored Output
  • Next by Date: same input ... different results???
  • Previous by thread: Re: What is @@@?
  • Next by thread: Re: What is @@@?