MathGroup Archive 1997

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

Search the Archive

Re: Turning the elements of a list into the arguments of a function.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8878] Re: [mg8827] Turning the elements of a list into the arguments of a function.
  • From: BobHanlon at aol.com
  • Date: Tue, 30 Sep 1997 20:16:44 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

One approach:

subst = f[x_,{ y__}] -> f[x,y];

f[q, {{a,b}, {c,d}}]  /.subst

f[q,{a,b},{c,d}]

f[q, {{a,b}, {c,d}, {e,f}}]  /.subst

f[q,{a,b},{c,d},{e,f}]

Bob Hanlon


  • Prev by Date: Compiled Functions and Mathgroup Archive
  • Next by Date: Re: Division symbol in Graphical Plots
  • Previous by thread: Turning the elements of a list into the arguments of a function.
  • Next by thread: := vs. =