Project

General

Profile

Bug #115

SortedSet#delete_if does not yield in sorted order

Added by NoKarma (Arthur Schreiber) almost 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:17144]

Description

=begin
ret = []
SortedSet["one", "two", "three"].delete_if { |x| ret << x }
ret == ["one", "two", "three"].sort # => false
=end

Also available in: Atom PDF