← All examples

Slim plugins

What the base was slimmed into, each from the plugin this strike lists: brain16 (AI), int128 and the other widths (WSMW), deci (Money), Unicode text and the case marks…

slim_plugins/strike.zg
# What the base was slimmed into (owner, 2026-10-07), each from the plugin this strike lists: `brain16`
# (AI), `int128` and the other widths (WSMW), `deci` (Money), Unicode text and the case marks (`unicode`,
# which took in UniTect and CAPS on 2026-10-12). Testing (TAS) and range types (ASP) are the base's again.
case.any [fn];

fn Halve ['n': int128] -> int128 {
    return 'n' div.floor 2;
}

test fn halves [] {
    must halve[10] equal_to 5;
}

MAIN {
    let 'b': brain16 = 0.5;
    let 'w': not_std.uint4 = 9;
    let 'price': deci64 = 19.99;
    let 'g': char.grapheme = `ก็`;
    let 'age': int32[min 0, max 150] = 42;
    print.useful[HALVE[1000000000000000000000], " ", 'b', " ", 'w', " ", 'price', " ", 'g', " ", 'age', newln];
}
Output, then zomp test
500000000000000000000 0.5 9 19.99 ก็ 42
test halves ... ok
1 tests: 1 passed, 0 failed