MathGroup Archive 1998

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

Search the Archive

Re: lists



Paul.Hanson@colorado.edu wrote:
> 
> Hola!
>   So, if you have a couple of lists:
>   {{1},{2},{3},{4}....{n}}
> and
>   {{1a},....{na}}
> and I want to combine them such that,
>   {{1},{1a},{2},{2a}....{n},{na}}
> 
> How do I get there?  Thanks in advance for the help.

If the lists are x and y, 
	{x,y}//Transpose//Flatten[#,1]&
should do it.

Ken Levasseur
UMass Lowell



  • References:
    • lists
      • From: Paul.Hanson@colorado.edu
  • Prev by Date: Re[a + I b] = a
  • Next by Date: Re: Derivative via mathematica
  • Prev by thread: lists
  • Next by thread: Re: lists