Project

General

Profile

« Previous | Next » 

Revision 2baeb782

Added by shugo (Shugo Maeda) over 13 years ago

  • enum.c (rb_enum_values_pack): rename from enum_values_pack, and
    remove static.

  • enumerator.c (lazy_init_iterator, lazy_init_yielder,
    lazy_select_func, lazy_reject_func, lazy_grep_func): handle
    multiple values correctly.

  • enumerator.c (lazy_grep): change the behavior when a block is
    given, to be consistent with Enumerable#grep.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e