Yielding. Am I getting this?


#1

Yielding is like going to a subroutine (the block) then returning (to the method)?


#2

No, yielding is going to a subroutine.

If the subroutine is a block or a lambda, then it will go back to the method after it returns, if it's a proc, it will not.


#3

Thanks, yes, it became a lot clearer as I progressed through the course!