Binary search: Difference between revisions
→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)"
(Dialects of BASIC moved to the BASIC section.) |
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
||
Line 7,193:
return(0) // not found</syntaxhighlight>
=={{header|V (Vlang)}}==
<syntaxhighlight lang="v (vlang)">fn binary_search_rec(a []f64, value f64, low int, high int) int { // recursive
if high <= low {
return -1
Line 7,237:
-1
</pre>
=={{header|Wortel}}==
{{trans|JavaScript}}
|