aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-12-10 13:38:12 -0800
committerJeremy Evans <code@jeremyevans.net>2019-12-11 04:59:56 +0200
commit85e43e1dfecef69b935c48c235cc20f21bd4f0d4 (patch)
tree4b670273740a8e1556851fb2ac792d8b480de938 /.github
parent8a80bfcfd4d510a20a62e21d8d2f4119cb823d4f (diff)
downloadruby-85e43e1dfecef69b935c48c235cc20f21bd4f0d4.tar.gz
Fix Enumerator::Lazy#with_index
* Make it correctly handle lambdas * Make it iterate over the block if block is given The original implementation was flawed, based on lazy_set_method instead of lazy_add_method. Note that there is no implicit map when passing a block, the return value of the block passed to with_index is ignored, just as it is for Enumerator#with_index. Also like Enumerator#with_index, when called with a block, the return value is an enumerator without the index. Fixes [Bug #16414]
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions