Project

General

Profile

Actions

Bug #115

closed

SortedSet#delete_if does not yield in sorted order

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions #1

Updated by NoKarma (Arthur Schreiber) over 16 years ago

=begin
Same for SortedSet#reject!:

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

Actions #2

Updated by Anonymous over 16 years ago

=begin
Issue #115 has been updated by Arthur Schreiber.

Same for SortedSet#reject!:

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

Bug #115: SortedSet#delete_if does not yield in sorted order
http://redmine.ruby-lang.org/issues/show/115

Author: Arthur Schreiber
Status: Open
Priority: Normal
Assigned to: Akinori MUSHA
Category:
Target version:

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


You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account

=end

Actions #3

Updated by knu (Akinori MUSHA) over 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Fixed in SVN HEAD. Thanks!
=end

Actions #4

Updated by Anonymous over 16 years ago

=begin
Issue #115 has been updated by Akinori MUSHA.

Status changed from Open to Closed
% Done changed from 0 to 100

Fixed in SVN HEAD. Thanks!

Bug #115: SortedSet#delete_if does not yield in sorted order
http://redmine.ruby-lang.org/issues/show/115

Author: Arthur Schreiber
Status: Closed
Priority: Normal
Assigned to: Akinori MUSHA
Category:
Target version:

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


You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://redmine.ruby-lang.org/my/account

=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0