Search a list of records: Difference between revisions

m
Fix Perl 6 -> Raku links
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku links)
Line 2,124:
 
The built-in method <tt>.first</tt> fulfills the requirements of this task.<br>
It takes any [https://docs.perl6raku.org/language/operators#infix_~~ smart-matcher] as a predicate. The <tt>:k</tt> adverb makes it return the key (i.e. numerical index) instead of the value of the element.
 
{{Works with|Rakudo|2016.08}}
10,333

edits