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: [mg98985] Re: pure function with optional number of arguments
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Thu, 23 Apr 2009 06:43:22 -0400 (EDT)
  • References: <200904220912.FAA13452@smc.vnet.net> <gsmrus$ger$1@smc.vnet.net>

Leonid Shifrin wrote:
> Hi Ruth,
> 
> You can use the undocumented form of the pure function which can take any
> 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: Brace, bracket pretty format needed
  • Next by Date: Re: Modifying List Elements.
  • Previous by thread: Re: pure function with optional number of arguments
  • Next by thread: Re: pure function with optional number of arguments