Apply function to each element returned by iterator.
Operation moves the iterator to last element in iteration. If iterator points at some element it will be included in iteration.