This question already has answers here: Idiomatic way to use for-each loop given an iterator? (9 answers)
There is no any dedicated video or article on this. I really need th开发者_运维百科is solution.