Skip to content

Instantly share code, notes, and snippets.

@gusdelact
Created October 13, 2019 04:22
Show Gist options
  • Save gusdelact/a1742015004254162ea55295ecc968f9 to your computer and use it in GitHub Desktop.
Save gusdelact/a1742015004254162ea55295ecc968f9 to your computer and use it in GitHub Desktop.
fn f01(par01: (String, bool)) -> (bool,String) {
println!("{:p}",&par01);
(par01.1, par01.0)
}
fn main() {
let ntuple = (1,3.1459,"gustavo", 1E6, 1E-6 , 'a',true,0.51);
let btuple = ("gus".to_string(), true);
println!("{:p}",&btuple);
let btuple02= f01(btuple);
println!("{:?}",btuple02);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment