Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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