MathGroup Archive 2007

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

Search the Archive

Re: Slots & Ampersands

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74403] Re: Slots & Ampersands
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 19 Mar 2007 22:11:18 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <etlq8s$rab$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

and when you don't wish to use the argument of a function ??
Say you have  the function
f[x_]:=1
or
f[_]:=1

the pure function version is

1 &

no Slot[].

Regards
   Jens

Mr Ajit Sen 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
> 


  • Prev by Date: Re: About TableForm
  • Next by Date: symmetric fourier integral problem
  • Previous by thread: Re: Slots & Ampersands
  • Next by thread: Re: Slots & Ampersands