Re: Convert Array to Simple List
- To: mathgroup at smc.vnet.net
- Subject: [mg86973] Re: Convert Array to Simple List
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 28 Mar 2008 03:12:54 -0500 (EST)
- Organization: The Open University, Milton Keynes, UK
- References: <fsg6j6$iuk$1@smc.vnet.net>
Pierre wrote: > I need to convert an Array (List of List) to a simple List by concatening the colums or the lines. > > e.g. : {{a,b},{c,d}} ==>{a,b,c,d} > or > {{a,b},{c,d}} ==>{a,c,b,d} In[1]:= m = {{a, b}, {c, d}}; In[2]:= Flatten@m Out[2]= {a, b, c, d} In[3]:= Flatten@Transpose@m Out[3]= {a, c, b, d} Regards, -- Jean-Marc