I love itertools; it's one of the most beautiful, composable standard libs. Whenever I have an iteration problem, there's almost always an itertools routine that fits it perfectly. Sometimes, however, neither itertools nor the recipes included in its docs do quite what I need.
Here I've collected several routines I've reached for but not found. Since they are deceptively tricky to get right, I've wrapped them up into a library. We've also included implementations of the recipes from the itertools documentation. Enjoy! Any additions are welcome; just file a pull request.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
4.2.0-3.2.3 info | SUSE-SLE-Module-Packagehub-Subpackages-15-SP1-2020-1037 | 2020-04-20 | 15 SP1 Subpackages Updates |
|
|
4.2.0-bp152.2.20 info | GA Release | 2020-04-17 | 15 SP2 |
|
|
4.1.0-bp150.2.3 info | GA Release | 2018-07-30 | 15 |
|
|