Issue #13801 has been updated by davidarnold (David Arnold).


Created pull request: https://github.com/ruby/ruby/pull/1673

----------------------------------------
Feature #13801: Implement case equality test for Set#===
https://bugs.ruby-lang.org/issues/13801#change-66138

* Author: davidarnold (David Arnold)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
In keeping with other class semantics, Set should implement an inclusion / membership test for #===.

For example with Range:

~~~ ruby
(1..3) === 2 #=> true
~~~

Desired behavior:

~~~ ruby
Set[1, 2, 3] === 2 #=> true
~~~

Current behavior:

~~~ ruby
Set[1, 2, 3] === 2 #=> false
~~~




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>