Project

General

Profile

Actions

Bug #116

closed

SortedSet#each does not return self

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

Status:
Closed
Target version:
-
ruby -v:
[ruby-dev:35002]

Description

=begin
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.
=end


Files

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

Also available in: Atom PDF

Like0
Like0Like0