MathGroup Archive 2008

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

Search the Archive

Re: Convert Array to Simple List


Pierre wrote:
> I need to convert an Array (List of List) to a simple List by concatening the colums or the lines.

'Array' is not a 'List' of 'List's but a function that generates 
arbitrary-dimensional lists.

> 
> e.g. : {{a,b},{c,d}}  ==>{a,b,c,d}

Join @@ {{a,b},{c,d}}

or Flatten[{{a,b},{c,d}}]

> or
> {{a,b},{c,d}}  ==>{a,c,b,d}

Use Transpose first.


  • Prev by Date: Re: Convert Array to Simple List
  • Next by Date: Re: Limit[(x - Log[Cosh[x]]) SinIntegral[x], x -> Infinity]
  • Previous by thread: Re: Convert Array to Simple List
  • Next by thread: The FinancialData Function