控制流 / 条件语句 / 匹配语句

let number = 42;
match number {
    1 => print!("one"),
    x if x > 10 => print!("over 10"),
    _ => print!("other value"),
}