summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorksss <[email protected]>2018-03-27 10:53:33 +0900
committerksss <[email protected]>2018-03-27 10:53:33 +0900
commit3a22d113ee1f3c3b5a64494cde4ae217d97d8f4d (patch)
tree8e564d89cdd7f300e06cd911f10398e622311ed7 /include/mruby.h
parent203b071ca2e8ad7caec29bfcdd65c12b9db2aa93 (diff)
downloadmruby-3a22d113ee1f3c3b5a64494cde4ae217d97d8f4d.tar.gz
mruby-3a22d113ee1f3c3b5a64494cde4ae217d97d8f4d.zip
Reimplement `Enumerable#zip` with Enumerator
for fix some specs - [passes each element of the result array to a block and return nil if a block is given](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L11-L17) - [converts arguments to arrays using #to_ary](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L23-L27) - [converts arguments to enums using #to_enum](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L29-L34) - [gathers whole arrays as elements when each yields multiple](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L36-L39)
Diffstat (limited to 'include/mruby.h')
0 files changed, 0 insertions, 0 deletions