interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / si / rosetta / exercises / reverse-string / reverse-string.om

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