General

Profile

punjab (Arvinder Singh)

Issues

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

Activity

01/07/2015

11:59 PM Ruby Bug #10713 (Rejected): Assigning default value for a Hash as an empty Array creating unpredictable results
Creating a Hash with a default value works fine, unless the default value is an empty Array.
E.g. the following returns an empty Hash...
~~~
irb(main):001:0> letters = Hash.new([])
=> {}
irb(main):002:0> letters[:a] << 1
=> [1]...
punjab (Arvinder Singh)

Also available in: Atom