MathGroup Archive 1996

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

Search the Archive

How do you parse a n element list into a 2 by (n/2) array?


I have a list say,

{1,2,3,4,5,6}

and want to transform it to:

{{1,2},{3,4},{5,6}}

I know it's possible but I don't remember how.


==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Notebook printing on unix?
  • Next by Date: Re: Mma 2.2.3 / Win95 - PROBLEM
  • Previous by thread: Re: Functional programming
  • Next by thread: Re: How do you parse a n element list into a 2 by (n/2) array?