Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MARIO-Math-Reasoning/Super_MARIO
/ batch
Function
batch
react_batch_demo.py:15–20 ·
view source on GitHub ↗
(iterable, n=-1)
Source
from the content-addressed store, hash-verified
13
14
15
def
batch(iterable, n=-1):
16
l = len(iterable)
17
if
n <= 0:
18
n = l
19
for
ndx in range(0, l, n):
20
yield
iterable[ndx: min(ndx + n, l)]
21
22
23
def
parse_args():
Callers
2
solver_demo.py
File · 0.90
react_batch_demo.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected