navid/haze / cb1bac46fbd9fca0f0e2a401590740b0840b47821983a25743fc29c1572577d9 / 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))
}