Often, the major goal of porting Rust functionality over to Python is for speed. So far, my initial experimentation has shown that that gain is very low (or even non-existant) due to 2 main reasons: ...
chain https://docs.python.org/3/library/itertools.html#itertools.chain combinations https://docs.python.org/3/library/itertools.html#itertools.combinations count ...