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


<masak> r: say { 0 => 1, 1 => 0 }.max(:by(*.value))
<p6eval> rakudo a41a48: OUTPUT«"1" => 0␤»
<masak> looks like a bug to me.
* masak submits rakudobug
<masak> grondilu++ # discoverer
<moritz> r: say { 0 => 1, 1 => 0 }.pairs.max(:by(*.value))
<p6eval> rakudo a41a48: OUTPUT«"1" => 0␤»
<moritz> r: say (0 => 1, 1 => 0).max(:by(*.value))
<p6eval> rakudo a41a48: OUTPUT«1 => 0␤»
<masak> r: say max :by(*.value), { 0 => 1, 1 => 0 }.list
<p6eval> rakudo a41a48: OUTPUT«"0" => 1␤»
<masak> I think a number of method forms may simply be missing their
:by parameter.
<moritz> r: say List.can('max')
<p6eval> rakudo a41a48: OUTPUT«max␤»
<moritz> r: say List.can('max')[0].signature.perl
<p6eval> rakudo a41a48: OUTPUT«:(: $by = { ... }, Mu *%_)␤»
<moritz> r: say Parcel.can('max')[0].signature.perl
<p6eval> rakudo a41a48: OUTPUT«:(: $by = { ... }, Mu *%_)␤»
<moritz> seems it should work
<masak> weird.

Reply via email to