finesse.utilities.misc.pairwise

finesse.utilities.misc.pairwise(iterable)[source]

Iterates through each pair in a iterable.

Parameters
iterablecollections.abc.Iterable

An iterable object.

Returns
zip

A zip object whose .next() method returns a tuple where the i-th element comes from the i-th iterable argument.