Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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. =