Write a Python generator that yields adjacent pairs from an iterable without storing the whole iterable.