chunk vs batched
Posted to
tcl
by Bradipo at Tue Jun 17 16:35:20 GMT 2025
view raw
def chunk(l,n):
def _chunk(i):
return
[i[:n]] + _chunk(i[n:])
if
len(i) > n
else
[i]
return
_chunk(l)
Recent Posts
tcl by oldlaptop
25 days ago
tcl by oldlaptop
25 days ago
tcl by Molnija Bjornsson
30 days ago
tcl by Molnija Bjornsson
30 days ago
tcl by zmoment
30 days ago
tcl by zmoment
31 days ago
tcl by Guest86
36 days ago
tcl by Guest86
36 days ago
tcl by Guest86
36 days ago
tcl by Guest86
36 days ago
Submit
New paste
Documentation
From Jabber