MathGroup Archive 2002

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

Search the Archive

Re: Stumped again on a simple list


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