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 / exercises / reverse-string / reverse-string.om
| 1 | note Exercism-style exercise "reverse-string": https://exercism.org/tracks/python/exercises/reverse-string |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note reverse writes the bytes of s into o in reverse order and returns the length. |
| 4 | note Check it with: sh exercise.sh exercises/reverse-string |
| 5 | om2 |
| 6 | fn reverse s view uchar * o edit uchar * to ulong |
| 7 | note replace this line with your solution |
| 8 | trap 13 |
| 9 | end |