interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / binary-search / binary-search.om

10 lines · 431 bytes Raw Blame History
1note Exercism-style exercise "binary-search": https://exercism.org/tracks/python/exercises/binary-search
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note find is the index of v in the ascending array a, found by binary search, or -1 when v is not
4note in a.
5note Check it with: sh exercise.sh exercises/binary-search
6om2
7fn find a view ulong * v ulong to long
8note replace this line with your solution
9trap 13
10end