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 juliannoble2
2 days ago
tcl by juliannoble2
4 days ago
tcl by oldlaptop
12 days ago
tcl by oldlaptop
12 days ago
tcl by oldlaptop
12 days ago
tcl by oldlaptop
12 days ago
tcl by apn
27 days ago
tcl by arjen
41 days ago
tcl by cgm
50 days ago
tcl by cgm
50 days ago
Submit
New paste
Documentation
From Jabber