title: How to Iterate 10 element each time from a Iterator<String> of size 100
body: <p>I have an iterator of a string of size 100. I want to get 10 elements each time and pass them into another function.
  Is there any method/way other than making conditions inside the loop to count 10 element?</p>