MCPcopy 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
15def 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
23def parse_args():

Callers 2

solver_demo.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected