fn main() {
let user = ("Bob", 37);
match user{
("Tom", 36) => println!("name: Tom, age: 36"),
("Bob", 37) => println!("name: Bob, age: 37"),
_ => println!("Undefined")
}
}
var user = ("Bob", 37);
var str = user switch {
("Tom", 36) => "name: Tom, age: 36",
("Bob", 37) => "name: Bob, age: 37",
_ => "Undefined"
}
Console.Writeline(str);