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