Adrian Tschira
45b55e23d3
Add batch_iter to utils
...
There's a frequent idiom I noticed where an iterable is split up into a
number of chunks/batches. Unfortunately that method does not work with
iterators like dict.keys() in python3. This implementation works with
iterators.
Signed-off-by: Adrian Tschira <nota@notafile.com>
2018-05-19 17:48:30 +02:00
..
2018-05-01 17:54:19 +01:00
2018-05-16 10:09:24 +00:00
2018-04-27 14:31:23 +01:00
2018-05-18 11:00:55 +01:00
2018-04-30 16:21:11 +01:00
2018-04-30 09:49:10 +02:00
2018-05-11 00:35:13 +01:00
2018-04-27 14:31:23 +01:00
2018-05-18 11:28:04 +01:00
2018-05-16 07:19:18 +01:00
2018-05-03 16:25:05 +01:00
2017-11-29 16:44:35 +00:00
2018-04-30 01:28:13 +01:00
2018-04-28 13:41:41 +02:00
2018-05-18 10:35:23 +01:00
2018-05-18 11:22:12 +01:00
2015-11-06 09:57:17 +00:00
2018-05-18 15:51:21 +01:00
2017-10-23 15:52:32 +01:00
2018-05-19 17:48:30 +02:00
2018-05-17 21:35:07 +01:00
2018-01-07 19:52:58 -07:00
2018-04-27 14:18:00 +01:00
2018-05-01 18:13:54 +01:00
2018-05-17 17:58:25 +01:00
2018-05-17 17:58:25 +01:00
2018-03-28 11:03:52 +01:00
2018-04-10 11:35:29 +02:00
2017-11-14 11:22:42 +00:00