I thought there was an iterator in itertools for taking the first n items of an iterator, then halting, but I can't find it. Did I imagine such a tool, or am I missing something?
-- Steven -- http://mail.python.org/mailman/listinfo/python-list
I thought there was an iterator in itertools for taking the first n items of an iterator, then halting, but I can't find it. Did I imagine such a tool, or am I missing something?
-- Steven -- http://mail.python.org/mailman/listinfo/python-list