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


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

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

From "Sjoerd C. de Vries" <sjoerd.c.devries@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 <j6jpam$mdh$1@smc.vnet.net> (permalink)
References <j6h31i$6un$1@smc.vnet.net>

Show all headers | View raw


Hi Richard,

These are actually three operators:

& (Function) is part of a pure function expression: e.g. #^2& is a
function that squares it argument; # stands for the argument

/@ is the infix form of the Map function, which can be used to map a
function over a list of items

% (Out) is the shorthand notation for the result returned in the most
recent evaluation (presumably in this case the evaluation returned a
list of items)

How could you have found out this yourself? Well,

- select the '&', press F1 (Help on Windows) and the second item is
'Function'
- select /@, press F1 and the only result is 'Map'
- select '%', press F1 and the second result is `Out`

It's actually not that difficult.

Cheers -- Sjoerd


On Oct 5, 10:04 am, Richard Cohen <cohenr...@gmail.com> wrote:
> First[Options[#, "ColorSpace"] & /@ %]
> could someone please explain the use of these  & /@ %
> i've looked everywhere to no avail.
> rich

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous 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