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