Re: lists
- To: mathgroup@smc.vnet.net
- Subject: [mg10511] Re: [mg10479] lists
- From: Levasseur <levasseu@bit-net.com>
- Date: Tue, 20 Jan 1998 02:22:59 -0500
- References: <199801160935.EAA08315@smc.vnet.net.>
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
- lists