[#81492] [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — normalperson@...

Issue #13618 has been reported by normalperson (Eric Wong).

12 messages 2017/06/01

[ruby-core:81734] [Ruby trunk Bug#13669] Enumerable#uniq is ignoring second and following block arguments

From: kachick1@...
Date: 2017-06-20 19:17:18 UTC
List: ruby-core #81734
Issue #13669 has been reported by kachick (Kenichi Kamiya).

----------------------------------------
Bug #13669: Enumerable#uniq is ignoring second and following block arguments
https://bugs.ruby-lang.org/issues/13669

* Author: kachick (Kenichi Kamiya)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-06-20 trunk 59122) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
github: https://github.com/ruby/ruby/pull/1658

```ruby
enum = Object.new.to_enum
class << enum
  def each
    yield
    yield nil
    yield 0
    yield 1
    yield 0, :LABEL
    yield [0, :LABEL]
    yield 1, :LABEL
    yield 1, :LABEL
    yield 1, :DIFFERENT
  end
end

p enum.uniq
```

Current
---

```ruby
[nil, 0, 1, [0, :LABEL]]
```

Is this intentional?

Expected
---

```ruby
[nil, 0, 1, [0, :LABEL], [1, :LABEL], [1, :DIFFERENT]]
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next