Re: how to get an assignment from a rule ?
- To: mathgroup at smc.vnet.net
 - Subject: [mg29337] Re: how to get an assignment from a rule ?
 - From: "Allan Hayes" <hay at haystack.demon.co.uk>
 - Date: Thu, 14 Jun 2001 02:27:17 -0400 (EDT)
 - References: <9g7411$cf3$1@smc.vnet.net>
 - Sender: owner-wri-mathgroup at wolfram.com
 
Guido:
Set@@@{a->b,c->d};
or in fuller form,
Apply[Set,{a->b,c->d},{1}];
each give us
{a,c}
        {b,d}
Apply replaces heads:
A@@@{B[x,y], C[x,y]}
        {A[x,y],A[x,y]}
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Guido Carlet" <carlet at sissa.it> wrote in message
news:9g7411$cf3$1 at smc.vnet.net...
> Anybody knows how to do this in Mathematica ?
>
> 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 ?
>
> Thank you !
>
>
>
>