~starkingdoms/starkingdoms

ref: 1991fb85e494fb35c0c5c9b6838f9e87c31b8908 starkingdoms/crates/kabel/test/runtime/max.kab -rw-r--r-- 216 bytes
1991fb85 — core mystery work? a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
function max(first, second) {
    if(first > second) {
        return first;
    } else {
        return second;
    }
}

print max(1, 2); // 2
print max(3, 6); // 6
print max(-5.2, 5); // 5
print max(5, -5.2); // 5