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-19 17:48:30 +02:00
2018-03-29 23:13:33 +01:00
2018-04-29 00:13:57 +02:00
2016-02-08 14:26:45 +00:00
2017-09-26 19:21:41 +01:00
2018-04-28 13:57:00 +02:00
2018-01-19 18:23:45 +00:00
2016-08-05 16:36:07 +01:00
2018-04-28 13:57:00 +02:00