use collectFirst instand of a var and iterate

`Iterator(1,2,3).map{i => println(i);i}` nothing happened for a lazy collection until consume asked.