From: "marcandre (Marc-Andre Lafortune)" Date: 2012-06-14T11:54:40+09:00 Subject: [ruby-core:45642] [ruby-trunk - Feature #6589][Open] Set#rehash Issue #6589 has been reported by marcandre (Marc-Andre Lafortune). ---------------------------------------- Feature #6589: Set#rehash https://bugs.ruby-lang.org/issues/6589 Author: marcandre (Marc-Andre Lafortune) Status: Open Priority: Normal Assignee: knu (Akinori MUSHA) Category: lib Target version: 2.0.0 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 -- http://bugs.ruby-lang.org/