Cycle iterator

From jashkenas/underscore#1795