General

Profile

cabeer (Chris Beer)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/12/2015

05:45 PM Ruby Bug #11811 (Closed): Chaining lazy enumerators causes duplicate ouput
In Ruby 2.3.0-preview2, I'm seeing a change in behavior using lazy enumerators with select/reject and the & operator:
irb(main):037:0> %w(1 2 3).lazy.reject(&:empty?).each { |x| puts x }
1
1
2
2
3
3
Note that the output is do...
cabeer (Chris Beer)

Also available in: Atom