navid/haze / 94d8e2a026845bd62732f6eb7c222b5a9c18a60511c534c648cee6fd4b471090 / samples/baseline_2.8/lib/pair_mod.hz

pair_mod.hz

← samples/baseline_2.8/lib · 180 bytes · raw · download

// Generic types shared across modules.

pub type Pair[A, B] {
    first A
    second B
}

pub fn make_pair(a i32, b i32) Pair[i32, i32] => Pair[i32, i32]{ first = a, second = b }