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 mookie
24 days ago
tcl by oldlaptop
28 days ago
tcl by rhobart
41 days ago
tcl by rhobart
41 days ago
tcl by rhobart
42 days ago
tcl by Bradipo
42 days ago
tcl by rhobart
42 days ago
tcl by sssc
45 days ago
tcl by mookie
62 days ago
tcl by JMN
69 days ago
Submit
New paste
Documentation
From Jabber