Created
April 3, 2014 07:42
-
-
Save mayflaver/9949965 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
def test(data_iter, header_size): | |
h1 = itertools.islice(data_iter, header_size) | |
h2 = iter(data_iter) | |
return itertools.chain(h1, h2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment