MathGroup Archive 2011

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

Search the Archive

Re: can't find info about & /@ %

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121910] Re: can't find info about & /@ %
  • From: Simon <simonjtyler at gmail.com>
  • Date: Thu, 6 Oct 2011 04:23:54 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j6h31i$6un$1@smc.vnet.net>
  • Reply-to: comp.soft-sys.math.mathematica at googlegroups.com

All of these can be found in the Syntax guide page:
http://reference.wolfram.com/mathematica/guide/Syntax.html

But in particular, the & makes the preceding code, Options[#, "ColorSpace"]&, a pure fucntion: http://reference.wolfram.com/mathematica/ref/Function.html

The /@ is short for Map (http://reference.wolfram.com/mathematica/ref/Map.html) and the % means the last output, and is short for Out[] (%n means Out[n]).

So what you're doing is mapping the Options[#,"ColorSpace"]& function over the previous output, which hopefully is a list (or some container) of expressions that possess that option.



  • Prev by Date: Re: Thread::tdlen: Objects of unequal length
  • Next by Date: Extra parameter for DirichletDistribution
  • Previous by thread: Re: can't find info about & /@ %
  • Next by thread: Re: can't find info about & /@ %