pairwise

bandicoot.helper.tools.pairwise(iterable)

Returns pairs from an interator: s -> (s0,s1), (s1,s2), (s2, s3)...