If I have a sequence, I can get every other or every fifth
element by slicing. Is there an equivalent for iterators?
More specifically, I want every fifth line of a big file.
What is the most efficient way to get them?
Thanks,
Alan Isaac
element by slicing. Is there an equivalent for iterators?
More specifically, I want every fifth line of a big file.
What is the most efficient way to get them?
Thanks,
Alan Isaac
Comment