Posted to tcl by Bradipo at Tue Jun 17 16:35:20 GMT 2025view raw

  1. def chunk(l,n):
  2. def _chunk(i):
  3. return [i[:n]] + _chunk(i[n:]) if len(i) > n else [i]
  4. return _chunk(l)
  5.  
  6.  

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week