A "sliding window" iterator.