MathGroup Archive 2000

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

Search the Archive

joining lists.

  • To: mathgroup at
  • Subject: [mg23739] joining lists.
  • From: Otto Linsuain <linsuain+ at>
  • Date: Mon, 5 Jun 2000 01:09:32 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

    hi all, this should be simple.

    I got:

    list1={ some numbers }

    list2={ some other numbers }

    Append[list1,list2] gives me { some numbers, { some other numbers } }

    Join[list1,list2]   gives me { some numbers, some other numbers }

    I want { { some numbers }, { some other numbers } }

    Actually I have found that:

    Join[{list1},{list2}] does what I want but I don't find it very elegant.

    I can live with the lack of elegance, but I wonder if there is some
other function or construction (for joining lists) that I am not aware

    Thanks in advance. Otto Linsuain. 

  • Prev by Date: Re: Rookie question
  • Next by Date: NDSolve error message: Can't find starting value ...
  • Previous by thread: RE: Rookie question
  • Next by thread: Re: joining lists.