4 ms·
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 "yieldin
by syncopatience 14y 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.