Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9419
| From | Fred Simons <f.h.simons@tue.nl> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: addRule |
| Date | 2012-04-05 09:43 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jljpfo$cj8$1@smc.vnet.net> (permalink) |
| References | <201204040831.EAA29999@smc.vnet.net> |
This works:
Function[{x, y}, Rule[x, y], Listable] @@@ data
Regards,
Fred Simons
Eindhoven University of Technology
Op 4-4-2012 10:31, clansa schreef:
> 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
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: addRule Fred Simons <f.h.simons@tue.nl> - 2012-04-05 09:43 +0000
csiph-web