[ruby-cvs:54800] akr:r47652 (trunk): * enum.c (enum_slice_when): New method: Enumerable#slice_when.

akr at ruby-lang.org akr at ruby-lang.org
Sat Sep 20 15:52:31 JST 2014


akr	2014-09-20 15:52:29 +0900 (Sat, 20 Sep 2014)

  New Revision: 47652

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47652

  Log:
    * enum.c (enum_slice_when): New method: Enumerable#slice_when.
      (slicewhen_i): New function.
      (slicewhen_ii): New function.
    
    * enumerator.c (InitVM_Enumerator): New method:
      Enumerator::Lazy#slice_when.
    
      [ruby-core:62499] [Feature #9826]

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/enum.c
    trunk/enumerator.c
    trunk/test/ruby/test_enum.rb
    trunk/test/ruby/test_lazy_enumerator.rb


More information about the ruby-cvs mailing list