Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5443

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

From Simon <simonjtyler@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: can't find info about & /@ %
Date 2011-10-06 08:36 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j6jp9n$md7$1@smc.vnet.net> (permalink)
References <j6h31i$6un$1@smc.vnet.net>

Show all headers | View raw


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.

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

can't find info about & /@ % Richard Cohen <cohenrich@gmail.com> - 2011-10-05 08:04 +0000
  Re: can't find info about & /@ % "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-10-06 08:25 +0000
  Re: can't find info about & /@ % A Retey <awnl@gmx-topmail.de> - 2011-10-06 08:29 +0000
  Re: can't find info about & /@ % Simon <simonjtyler@gmail.com> - 2011-10-06 08:36 +0000
  Re: can't find info about & /@ % "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-10-06 08:36 +0000

csiph-web