jsyeo (Jason Yeo)
- Login: jsyeo
- Registered on: 01/28/2016
- Last sign in: 01/28/2016
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
01/28/2016
-
12:44 PM Ruby Bug #12029: Not all elements are yielded when count is given a block
- Hans Mackowiak wrote:
> you need splash:
> ...
hmmm, okay. I think I misunderstood how some Enumerable methods work. Thanks.
How do I close this issue by the way? -
10:19 AM Ruby Bug #12029 (Rejected): Not all elements are yielded when count is given a block
- When count is called on an enumerable that yields multiple elements, not all elements are yielded to the block.
~~~ruby
def foo
yield 1, 2
end
to_enum(:foo).count { |e| e == [1, 2] }
# Returns: 0
# Expected: 1
~~~
It app...