MathGroup Archive 2007

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

Search the Archive

Re: Slots & Ampersand

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74365] Re: [mg74359] Slots & Ampersand
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Mon, 19 Mar 2007 21:50:24 -0500 (EST)
  • References: <200703191053.FAA27902@smc.vnet.net>

that is like
f[_]=1

which will always return 1 when fed a single argument (unless upvalues
or other things get in the way)

On 3/19/07, Mr Ajit Sen <senra99 at yahoo.co.uk> wrote:
>   Dear MathGroup,
>
>  I've always regarded the Slot and Ampersand as being
>  inseparable in Mathematica (the Laurel & Hardy of
>  Mathematica?), and was surprised to find one of them absent
> in
>
>    Plot[Sin[x], {x, 0, 2Pi}, ColorOutput ->
>       (RGBColor[1, 0, 0]&)]
>
>  [Help Browser under ColorOutput::colpc ,Examples]
>
>   Question 1
>
>   Where is Laurel gone? Is he inside ColorOutput or
>   RGBColor?
>
>   Question 2
>
>   Are there other similar constructs in Mathematica? [No # ]
>
>   Thanks for your help.
>
>   Ajit Sen.
>
>
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: Re: About TableForm
  • Next by Date: Re: About TableForm
  • Previous by thread: Slots & Ampersands
  • Next by thread: Re: Slots & Ampersands