# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #118223]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118223 >


<masak> r: my %l = foo => 1, bar => 2; my %r = bar => 3, baz => 4; say
%l >>+<< %r
<camelia> rakudo 25a0b3: OUTPUT«use of uninitialized value of type Any
in numeric context  in block  at /tmp/OI858EugnG:1␤␤use of
uninitialized value of type Any in numeric context  in block  at
/tmp/OI858EugnG:1␤␤("foo" => 1, "bar" => 5, "baz" => 4).hash␤»
<masak> I must say I don't need that one often... but when I do, it's
*very* nice to have.
<masak> what's with all the warnings, though?
<isBEKaml> heh, what does >>+<< on hashes mean? do we take in keys too?
<masak> isBEKaml: do the operation on the values. >>+<< takes the
union of the keys; <<+>> takes the intersection.
<masak> isBEKaml: in this case I needed the union.
<masak> which is why I think the undefinedness warnings are unnecessary.
<masak> I *know* some keys/values are missing. that's why I did >>+<<
* masak submits rakudobug

Reply via email to