How to create tuple of tuples in Rust

1 Answer

0 votes
fn main() {
    let tuple_of_tuples = ((1, 2, 3), (7, -21, "rust"), 3.14);

    println!("{:?}", tuple_of_tuples);
}





/*
run:

((1, 2, 3), (7, -21, "rust"), 3.14)

*/

 



answered May 3, 2023 by avibootz

Related questions

2 answers 130 views
130 views asked May 3, 2023 by avibootz
3 answers 211 views
3 answers 199 views
1 answer 98 views
...