KemoFureApi/modules/Shared/utility.py

3 lines
87 B
Python

def divide_chunks(l, n):
for i in range(0, len(l), n):
yield l[i:i + n]