Globals: function and constant

In a yallo file, you can declare global function and constants that are available to all following contracts, constants and functions.

const a: nat = 12n;
function sum(a: nat, b: nat): nat {
    a + b
}

Last updated