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