4 ms·
At the bottom of the Python doc page for itertools are “more itertools” in which the functions “grouper” and “roundrobin” seem to do the trick. Overkill? Usage
by tartakovsky 6y ago
At the bottom of the Python doc page for itertools are “more itertools” in which the functions “grouper” and “roundrobin” seem to do the trick. Overkill?
Usage:
```
queues = grouper(names, minimum_number)
serendipity_teams = roundrobin(queues)
```