omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / si / rosetta / bench / solutions / HumanEval_0.om
| 1 | for i ulong len numbers |
| 2 | for j ulong len numbers |
| 3 | if ne i j |
| 4 | d = fabs sub get numbers i get numbers j |
| 5 | if lt d threshol |
| 6 | ret true |
| 7 | end |
| 8 | end |
| 9 | end |
| 10 | end |
| 11 | ret false |
| 12 | end |