MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: transforming a rule of lists to a list of rules


Thread is your friend here:
  Thread[{a, b, c} -> {0, 3, x}]

  Tony

Dr A.H. Harker
Department of Physics and Astronomy
University College London
Gower Street
London
WC1E 6BT

 

]->-----Original Message-----
]->From: Ken Senior [mailto:Ken.Senior at nrl.navy.mil] 
To: mathgroup at smc.vnet.net
]->Subject: [mg69166] [mg69098] transforming a rule of lists to a list of rules
]->
]->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
]->
]->


  • Prev by Date: Re: transforming a rule of lists to a list of rules
  • Next by Date: Re: generalized foldlist problem
  • Previous by thread: Re: transforming a rule of lists to a list of rules
  • Next by thread: Re: transforming a rule of lists to a list of rules