Re: transforming a rule of lists to a list of rules
- To: mathgroup at smc.vnet.net
- Subject: [mg69137] Re: [mg69098] transforming a rule of lists to a list of rules
- From: "Christoph Lhotka" <lhotka at astro.univie.ac.at>
- Date: Thu, 31 Aug 2006 04:38:41 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello! Use: In[.]:=Inner[Rule,{a,b,c,...},{aa,bb,cc,...},List] Out[.];={a->baa,b->bb,c->cc,...} with kind regards Christoph On Wed, 30 Aug 2006 06:32:51 -0400 (EDT) Ken Senior <Ken.Senior at nrl.navy.mil> 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 > -- Mag. Christoph Lhotka -- University of Vienna / Institute for Astronomy fon. +43 (1) 4277 51841 mail. lhotka at astro.univie.ac.at