← All examples

The Ground, Zag's base, alone

No plugins, no std.

ground_practical/strike.zg
# The Ground, Zag's base, alone: no plugins, no std (owner, 2026-10-08, built 2026-10-09).
# Operators, true-value numbers, `to.` conversions, range types and generics are the base's now;
# Signatar, CyborgPL's base, had none of them. Nothing is printed: printing is std's.

fn biggest <T: any> ['a': <T>, 'b': <T>, 'pick_a': bool] -> <T> {
    if 'pick_a' { return give 'a'; }
    return give 'b';
}

MAIN {
    let 'a': int32 = 2;
    let 'b': int32 = 'a' plus 3 times 4;
    let 'small' := to.int8['b'];                     # proven to fit: 14
    let 'level': int32[min 0, max 10] = 7;
    let 'wrapped': uint8 = 250 plus.wrap 10;
    let 'bigger' := biggest['b', 'a', 'b' > 'a'];
    let 'same' := 'bigger' equal_to 'b' and not ('small' < 0);
}
Output
Prints nothing.