Re: how to get an assignment from a rule ?
- To: mathgroup at smc.vnet.net
- Subject: [mg29345] Re: [mg29315] how to get an assignment from a rule ?
- From: BobHanlon at aol.com
- Date: Thu, 14 Jun 2001 02:27:23 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 2001/6/13 3:44:53 AM, carlet at sissa.it writes: >I have a list of rules: > >{a->b, c->d} > >and I want to get the corresponding assignments: > >a = b > >c = d > >Is there a command in Mathematica to do this ? > rules = {a -> b, c -> d}; {a, c} = {a,c} /. rules {b, d} Bob Hanlon Chantilly, VA USA