neso_fame.wall.periodic_pairwise(iterable: Iterable[T]) Iterable[tuple[T, T]]

Return successive overlapping pairs taken from the input iterator.

This is the same as itertools.pairwise(), except the last item in the returned iterator will be the pair of the last and first items in the original iterator.


Last update: Sep 23, 2024