github.com
Isn't the functionality of "collate" already available in the standard library as heapq.merge? The heapq version should be faster, too.
Reply on news.ycombinator.com