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 / series / series.om

11 lines · 553 bytes Raw Blame History
1note Exercism-style exercise "series": https://exercism.org/tracks/python/exercises/series
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note slices writes every contiguous run of k bytes of s, in order, joined by commas, into o and
4note returns the number of bytes written; or -1 when s is empty, -2 when k is negative, -3 when k is
5note zero, -4 when k is longer than s.
6note Check it with: sh exercise.sh exercises/series
7om2
8fn slices s view uchar * k long o edit uchar * to long
9note replace this line with your solution
10trap 13
11end