3 lines
80 B
Raku
3 lines
80 B
Raku
sub search (@a, $x --> Int) {
|
|
binary_search { $x cmp @a[$^i] }, 0, @a.end
|
|
}
|