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: [mg86988] Re: Convert Array to Simple List
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Fri, 28 Mar 2008 03:15:48 -0500 (EST)
  • Organization: University of Bergen
  • 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.

'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