just found that several functions from .itertools2 exist in https://github.com/erikrose/more-itertools/ ... check if/how to merge