Bug #116

SortedSet#each does not return self

Added by NoKarma (Arthur Schreiber) almost 4 years ago. Updated about 1 year ago.

[ruby-dev:35002]
Status:Closed Start date:06/09/2008
Priority:Normal Due date:
Assignee:knu (Akinori MUSHA) % Done:

100%

Category:-
Target version:-
ruby -v:

Description

irb(main):001:0> require "set"
=> true
irb(main):002:0> Set[1, 2, 3].each {}
=> #<Set: {1, 2, 3}>
irb(main):003:0> SortedSet[1, 2, 3].each {}
=> [1, 2, 3]

This behaviour deviates from what Array#each and Set#each do.

sorted_set_each.patch (298 Bytes) NoKarma (Arthur Schreiber), 06/09/2008 02:38 am

History

Updated by knu (Akinori MUSHA) almost 4 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Fixed in SVN HEAD.  Thanks!

Updated by Anonymous almost 4 years ago

Issue #116 has been updated by Akinori MUSHA.

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

Fixed in SVN HEAD.  Thanks!
----------------------------------------
Bug #116: SortedSet#each does not return self
http://redmine.ruby-lang.org/issues/show/116

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


irb(main):001:0> require "set"
=> true
irb(main):002:0> Set[1, 2, 3].each {}
=> #<Set: {1, 2, 3}>
irb(main):003:0> SortedSet[1, 2, 3].each {}
=> [1, 2, 3]

This behaviour deviates from what Array#each and Set#each do.


----------------------------------------
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

Also available in: Atom PDF