MathGroup Archive 2009

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

Search the Archive

Re: pure function with optional number of arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99003] Re: pure function with optional number of arguments
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Thu, 23 Apr 2009 06:46:37 -0400 (EDT)
  • References: <200904220912.FAA13452@smc.vnet.net> <gsmrus$ger$1@smc.vnet.net>

Yes indeed you are right, sorry for the confusion - just a stupid mistake.
I had in mind an (irrelevant to this problem)  possibility to use
Function[Null, body[##],Attributes] to give attributes to pure functions
defined with slots, which I believe is an undocumented feature (at least,
according to Roman Maeder as of v.4 - may be now it is, but I did not see
it).


Regards,
Leonid

2009/4/22 Szabolcs Horv=E1t <szhorvat at gmail.com>

> Leonid Shifrin wrote:
>
>> Hi Ruth,
>>
>> You can use the undocumented form of the pure function which can take an=
y
>> number of arguments:
>>
>> Function[Null, body[##]].
>>
>
> This is a standard documented feature.  See these doc pages:
>
> http://reference.wolfram.com/mathematica/ref/Function.html#29126
> http://reference.wolfram.com/mathematica/ref/SlotSequence.html
>



  • Prev by Date: Re: Has Fourier been fixed in Mathematica 7
  • Next by Date: Re: Alignment of Graphics Within Expressions
  • Previous by thread: Re: pure function with optional number of arguments
  • Next by thread: Re: Re: pure function with optional number of arguments