Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Slicing Arrays in this way


  • From: toby at tobiah.org (Tobiah)
  • Subject: Slicing Arrays in this way
  • Date: Wed, 02 May 2007 15:03:24 -0700

 >>> elegant_solution([1,2,3,4,5,6,7,8,9,10])
[[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]]



-- 
Posted via a free Usenet account from http://www.teranews.com