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 / largest-series-product / largest-series-product.om
| 1 | note Exercism-style exercise "largest-series-product": https://exercism.org/tracks/python/exercises/largest-series-product |
| 2 | note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 3 | note largestproduct is the largest product of span adjacent decimal digits of s (1 for span 0); or |
| 4 | note -1 when span is negative, -2 when span is longer than s, -3 when s holds a non-digit. |
| 5 | note Check it with: sh exercise.sh exercises/largest-series-product |
| 6 | om2 |
| 7 | fn largestproduct s view uchar * span long to long |
| 8 | note replace this line with your solution |
| 9 | trap 13 |
| 10 | end |