WrightTools.kit.pairwise

WrightTools.kit.pairwise(iterable)[source]

s -> (s0,s1), (s1,s2), (s2, s3), …

Originally from itertools docs

Parameters:

iterable (iterable) – Iterable from which to produce pairs

Returns:

Generator which producis pairwise tuples

Return type:

generator