Yield successive n-sized chunks from lst.
(lst, n)
| 17 | |
| 18 | |
| 19 | def chunks(lst, n): |
| 20 | """Yield successive n-sized chunks from lst.""" |
| 21 | for i in range(0, len(lst), n): |
| 22 | yield lst[i : i + n] |
| 23 | |
| 24 | |
| 25 | def generate_summaries_or_translations( |
no outgoing calls
no test coverage detected