Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: lists



If 


    A = {{1}, {2},...,{n}}

and

    B = {{1a}, {2a},...,{na}},

then 


    Flatten[Transpose[{A, B}], 1]

does what you want.

--Lou Talman

Begin forwarded message:

From: Paul.Hanson@colorado.edu
To: mathgroup@smc.vnet.net
Subject: [mg10522] [mg10479] lists
Organization: University of Colorado at Boulder

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.

Paul Hanson

-- 

				 * * 

                                *    *
                           /\    */\*
                          /  \   /  \ /\




  • Prev by Date: Re: Impossible?
  • Next by Date: Re: ReplacePart?
  • Prev by thread: Re: lists
  • Next by thread: Re: lists