Generating combinations in blocks


Category:
Scripts
Python
Requirements:
Seller:
Price:
-
System:
Rating:
4.4
License:

Description - Generating combinations in blocks



This recipe is yet another Combination generator, with an extra twist: the generated combinations can be yielded in blocks of a given size. This comes useful (or necessary) when processing arbitrarily long or infinite iterables in bounded-size blocks.



More in Python-Generating combinations in blocks

Generating Generating Combinations