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 >
- References:
- pure function with optional number of arguments
- From: Ruth Lazcoz Saez <wtplasar@lg.ehu.es>
- pure function with optional number of arguments