Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Convert Array to Simple List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87004] Re: Convert Array to Simple List
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 28 Mar 2008 03:18:49 -0500 (EST)

On 3/27/08 at 8:15 AM, pierre-emile.lhuillier at mines-nancy.org
(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}

Look up Flatten in the documentation, i.e.,

In[1]:= Flatten[{{a, b}, {c, d}}]

Out[1]= {a,b,c,d}


  • Prev by Date: Re: Convert Array to Simple List
  • Next by Date: Re: symbolic evaluation
  • Previous by thread: Re: Convert Array to Simple List
  • Next by thread: Re: Convert Array to Simple List