Project

General

Profile

Actions

Feature #6589

closed

Set#rehash

Added by marcandre (Marc-Andre Lafortune) almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
[ruby-core:45642]

Description

There should be a way to rehash a Set.

s = Set.new([[]])
s.first << 1
# s.rehash # Does not exist!
s.include? [1] # => false, want true

See also:

http://stackoverflow.com/questions/10992423/is-this-expected-behaviour-for-a-set-of-arrays-in-ruby
http://stackoverflow.com/questions/10361400/deleting-a-modified-object-from-a-set-in-a-no-op


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12970: == Equality of recursive sets failsClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0