navid/haze / cb1bac46fbd9fca0f0e2a401590740b0840b47821983a25743fc29c1572577d9 / samples/baseline_2.1/propagation_success.hz
propagation_success.hz
← samples/baseline_2.1 · 153 bytes · raw · download
pure fn square(x i32) i32 => x * x
fn need_square(n i32) i32
: pre n >= 0
=> square(n)
fn main() {
const n = 6
print(need_square(n))
}