[ruby-cvs:69909] nobu:r62763 (trunk): string.c: split with block

nobu at ruby-lang.org nobu at ruby-lang.org
Thu Mar 15 20:08:05 JST 2018


nobu	2018-03-15 20:08:04 +0900 (Thu, 15 Mar 2018)

  New Revision: 62763

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

  Log:
    string.c: split with block
    
    * string.c (rb_str_split_m): yield each split substrings if the
      block is given, instead of returing the array.  [Feature #4780]

  Modified files:
    trunk/NEWS
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list