MathGroup Archive 2003

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

Search the Archive

Re: Operator that Adds Arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44845] Re: Operator that Adds Arguments
  • From: Roland Franzius <roland.franzius at uos.de>
  • Date: Wed, 3 Dec 2003 04:24:40 -0500 (EST)
  • Organization: Universitaet Hannover
  • References: <bqb7ch$nu6$1@bob.news.rcn.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Scott Guthery wrote:
> I've got a recursion that adds an argument at each step
> and I'd like to say something like ...
> 
> L = Length[F]
> NextOne[F_] = Append[F, Function[F[[L]][#1, #2, ..., #L]+#[L+1]]]]
> 
> and have F[[L+1]] be a function of L+1 arguments.
> 
> Any suggestions?


Evaluate /@ (Function[x, Plus[x, Slot[3]]] /@ (#1 + #2^2 &))

-- 

Roland Franzius


  • Prev by Date: Insert object - re-open file problem
  • Next by Date: Re: Namespaces/Context in Packages?
  • Previous by thread: Re: Insert object - re-open file problem
  • Next by thread: Re: Operator that Adds Arguments