first loop 1 2 3 4 5 6 7 8 9 second loop third loop 1 2 3 4 5 6 7 8 9 call func fourth loop You should just see: 4 4 4 4 You should see nothing between this line And this one