navid/haze / 94d8e2a026845bd62732f6eb7c222b5a9c18a60511c534c648cee6fd4b471090 / tests/lsp/main.hz

main.hz

← tests/lsp · 172 bytes · raw · download

use seq {range, Pair}

fn helper(p Pair) i32 => p.left + p.right

fn main() {
    var p Pair = Pair{ left = 1, right = 2 }
    var xs = range(1, 10)
    print(helper(p))
}