PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/moul/x/daily/romannum/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
moul / x / daily / romannum
Files
3 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/moul/x/daily/romannum/v0
gno
0.9

Files (3)

  • README.mdmarkdown
  • gnomod.tomltoml
  • romannum.gnogno
README.mdPreviewRaw
# `gno.land/p/moul/x/daily/romannum/v0`

**Roman-numeral converter** — `ToRoman`, `FromRoman`.

A pure port of the classic kata, valid for **1..3999**. `ToRoman` uses greedy
subtractive notation (panics out of range); `FromRoman` accepts a numeral only
if it is canonical (it must round-trip through `ToRoman`), so malformed forms
like `IIII`, `VV`, or `IC` are rejected. Deterministic — no time, randomness, or
I/O — and free of any realm coupling.

```go
import "gno.land/p/moul/x/daily/romannum/v0"

s := romannum.ToRoman(2024) // "MMXXIV"
n := romannum.FromRoman(s)   // 2024 (panics on a malformed numeral)
```

**Live demo:** [`r/moul/x/daily/romannumdemo`](https://github.com/moul/gno-contracts/tree/main/r/moul/x/daily/romannumdemo/v0)
· render it at [`/r/moul/x/daily/romannumdemo/v0`](https://gno.land/r/moul/x/daily/romannumdemo/v0).

<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->

---

Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

> 🧪 **Highly experimental — potentially vibe-coded.** Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).

<!-- END GNOCONTRACTS FOOTER -->

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.