MathGroup Archive 2002

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

Search the Archive

Re: Stumped again on a simple list

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32822] Re: Stumped again on a simple list
  • From: "DIAMOND Mark R." <dot at dot.dot>
  • Date: Thu, 14 Feb 2002 01:43:43 -0500 (EST)
  • Organization: The University of Western Australia
  • References: <a4auba$bu0$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

jj=Map[If[#<100,50,200]&,ii]

You will need to have a look at the help for Map (one of the many incredibly
useful functions in Mathematica , as well as the use of # and the anonymous function
called 'Function' for which the shorthand is '&'

... "anonymous called" ... I know it sounds peculiar!

--
Mark R. Diamond





  • Prev by Date: Re: Reading multiple (x,y) values from one file
  • Next by Date: Re: Stumped again on a simple list
  • Previous by thread: Re: Stumped again on a simple list
  • Next by thread: Re: Stumped again on a simple list