Hacker News new | ask | show | jobs
by syncopatience 4905 days ago
Thanks for this. I've always been a little perplexed as to why an enumerator in Ruby uses 'yield' when it seemed like it was really the caller that was "yielding" to the enumerator. I ought to have been thinking of an enumerator yielding (as in giving) a value to the block provided by the caller.