Re: transforming a rule of lists to a list of rules
- To: mathgroup at smc.vnet.net
 - Subject: [mg69139] Re: [mg69098] transforming a rule of lists to a list of rules
 - From: Adriano Pascoletti <pascolet at dimi.uniud.it>
 - Date: Thu, 31 Aug 2006 04:38:44 -0400 (EDT)
 - References: <200608301032.GAA27888@smc.vnet.net>
 - Sender: owner-wri-mathgroup at wolfram.com
 
On 30 ago 2006, at 12:32, Ken Senior wrote:
> Hello everyone.
>
> Does anyone know a way to transform a rule involving a list into a  
> list
> of individual rules, that is to interpret the rule elementwise?  For
> example, given
>
>    {a,b,c} -> {0,3,x}
>
> is there a transformation which will turn this into
>
>    {a->0, b->3, c->x}
>
> Thanks for the help!
>
> Ken
In[2]:=
Thread[{a, b, c} -> {0, 3, x}]
Out[2]=
{a -> 0, b -> 3, c -> x}
Adriano Pascoletti
- References:
-  transforming a rule of lists to a list of rules
- From: Ken Senior <Ken.Senior@nrl.navy.mil>
 
 
 -  transforming a rule of lists to a list of rules