Simon Willison’s Weblog

windowing the elements of an iterable. Strange voodoo itertools magic.