Posts tagged Yield

Iterators and Generators and Yields

May 12, 2012, 3:04 a.m. Python , Ruby , Threads , Yield

Both python and ruby have a yield which is thoroughly confusing to Java programmers and looks like the stuff that nightmares are made of. But eventually you realize that it isn't so bad after all. But before we deal with our nightmares, we to look at iterators.Python for loops look so nifty thanks t ...