[ruby-core:82334] [Ruby trunk Feature#13801] Implement case equality test for Set#===

From: david.n.arnold@...
Date: 2017-08-10 20:23:58 UTC
List: ruby-core #82334
Issue #13801 has been reported by davidarnold (David Arnold).

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

* 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:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next