Re: addRule
- To: mathgroup at smc.vnet.net
 - Subject: [mg125843] Re: addRule
 - From: Adriano Pascoletti <adriano.pascoletti at uniud.it>
 - Date: Thu, 5 Apr 2012 05:44:40 -0400 (EDT)
 - Delivered-to: l-mathgroup@mail-archive0.wolfram.com
 - References: <201204040831.EAA29999@smc.vnet.net>
 
In[1]:= Thread /@ Apply[Rule, {{1, {38, 35, 37}}, {2, {21}}, {3, {24,
14}}}, {1}]
Out[1]= {{1 -> 38, 1 -> 35, 1 -> 37}, {2 -> 21}, {3 -> 24, 3 -> 14}}
Adriano Pascoletti
2012/4/4 clansa <dauphinester at gmail.com>
> Hello,
> I have these data
> {{1, {38, 35, 37}}, {2, {21}}, {3, {24, 14}}}
> and I want
> {[1->38,1->35,1->37},{2->21},{3->24,3->14}}
> The solution is simple when list of data have the same length
> But what is the solution for my example
> Thanks
>
> Andrew
>
>
- References:
- addRule
- From: clansa <dauphinester@gmail.com>
 
 
 - addRule