# New Ticket Created by Alex Jakimenko # Please include the string: [perl #127539] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=127539 >
Code: my @h = <1 1 2 1 1>; say @h.grep:k: 1 Result: (1 1 1 1) I expected to see (0 1 3 4) which is the result of a very similar code snippet: my @h = <1 1 2 1 1>; say @h.grep: 1, :k However, it is totally fine to me if such code is supposed to do something else (e.g adverb the method name itself instead of passing named arguments, whatever that means). See IRC log for jnthn comments: http://irclog.perlgeek.de/perl6/2016-02-13#i_12036804