[ruby-cvs:69751] eregon:r62575 (trunk): Add a new #filter alias for #select

eregon at ruby-lang.org eregon at ruby-lang.org
Sun Feb 25 22:52:07 JST 2018


eregon	2018-02-25 22:52:07 +0900 (Sun, 25 Feb 2018)

  New Revision: 62575

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

  Log:
    Add a new #filter alias for #select
    
    * In Enumerable, Enumerator::Lazy, Array, Hash and Set
      [Feature #13784] [ruby-core:82285]
    * Share specs for the various #select#select! methods and
      reuse them for #filter/#filter!.
    * Add corresponding filter tests for select tests.
    * Update NEWS.
    
    [Fix GH-1824]
    
    From: Alexander Patrick <adp90 at case.edu>

  Added files:
    trunk/spec/ruby/core/array/filter_spec.rb
    trunk/spec/ruby/core/array/shared/select.rb
    trunk/spec/ruby/core/enumerable/filter_spec.rb
    trunk/spec/ruby/core/hash/filter_spec.rb
    trunk/spec/ruby/core/hash/shared/select.rb
    trunk/spec/ruby/library/set/filter_spec.rb
    trunk/spec/ruby/library/set/shared/select.rb
    trunk/spec/ruby/library/set/sortedset/filter_spec.rb
    trunk/spec/ruby/library/set/sortedset/shared/select.rb
  Modified files:
    trunk/NEWS
    trunk/array.c
    trunk/enum.c
    trunk/enumerator.c
    trunk/hash.c
    trunk/lib/set.rb
    trunk/spec/ruby/core/array/select_spec.rb
    trunk/spec/ruby/core/hash/select_spec.rb
    trunk/spec/ruby/library/set/select_spec.rb
    trunk/spec/ruby/library/set/sortedset/select_spec.rb
    trunk/test/ruby/test_array.rb
    trunk/test/ruby/test_enumerator.rb
    trunk/test/ruby/test_env.rb
    trunk/test/ruby/test_hash.rb
    trunk/test/test_set.rb


More information about the ruby-cvs mailing list