Put all cards in sheets
This commit is contained in:
parent
a962453058
commit
5003c625ba
2 changed files with 34 additions and 27 deletions
6
util.py
Normal file
6
util.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import itertools
|
||||
|
||||
def batched(iterable, n):
|
||||
it = iter(iterable)
|
||||
while batch := tuple(itertools.islice(it, n)):
|
||||
yield batch
|
||||
Loading…
Add table
Add a link
Reference in a new issue