Answer the question
In order to leave comments, you need to log in
How to compare tuples in C#?
in rast I can write like this:
fn main() {
let user = ("Bob", 37);
match user{
("Tom", 36) => println!("name: Tom, age: 36"),
("Bob", 37) => println!("name: Bob, age: 37"),
_ => println!("Undefined")
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question