MathGroup Archive 2006

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg69152] Re: transforming a rule of lists to a list of rules
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Thu, 31 Aug 2006 04:39:08 -0400 (EDT)
  • References: <ed3qil$rn5$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In[2]:=
fn[Rule[list1_List,list2_List]]:=Thread[Rule[list1,list2]];
In[4]:=
fn[{a,b,c}->{0,3,x}]//InputForm
Out[4]//InputForm=
{a -> 0, b -> 3, c -> x}


dkr


  • Prev by Date: Re: generalized foldlist problem
  • Next by Date: Re: transforming a rule of lists to a list of rules
  • 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