Re: Slots & Ampersands
- To: mathgroup at smc.vnet.net
- Subject: [mg74413] Re: Slots & Ampersands
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Tue, 20 Mar 2007 05:53:42 -0500 (EST)
On 3/19/07 at 5:53 AM, senra99 at yahoo.co.uk (Mr Ajit Sen) wrote: >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]&)] >Where is Laurel gone? Is he inside ColorOutput or RGBColor? Neither. All that has been done here is define a function that returns a constant color independent of any argument. -- To reply via email subtract one hundred and four