Solved by JuanFMontesinos in post #5 
              
              
                Because you are not doing the same than them. The code is way different. It’s not like because having the same input it will work the same way. 
In simple words, a generator “extracts” parameters  (internally) on-demand. Once all the parameters have been extracted the generator is empty. 
That leads…