# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #122080] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=122080 >
<masak> m: my @a = <a b b>; .splice(.first-index({ $_ eq 'b' }), 1) given @a; say @a.perl <camelia> rakudo-moar 1a3706: OUTPUT«Array.new("a", "b")» <masak> \o/ <sergot> nice! <masak> oh, actually <masak> m: my @a = <a b b>; .splice(.first-index('b', 1)) given @a; say @a.perl <camelia> rakudo-moar 1a3706: OUTPUT«Cannot call 'first-index'; none of these signatures match::(Any: Regex:D $test, *%_):(Any: :D $test, *%_):(Any: $test, *%_) in block at /tmp/awYaDbDYFR:1» <masak> aww <masak> clearly .first-index should be able to match on literal things, no? <masak> .grep and .first certainly do. <moritz> yes, it should take Mu and smart-match against it * masak submits rakudobug