#going thru 1 part of a tuple in a nested vector
2 messages · Page 1 of 1 (latest)
x.iter().map(|(_, x)| x).collect::<Vec<_>>()
2 messages · Page 1 of 1 (latest)
im not 100% sure im actually using the right terminology, but as an example if i have let x = [(0,"zero"),(1,"one),(2,"two).... if i could do something like println!("{:?}",x.strings) and have it print ["zero","one","two"...
x.iter().map(|(_, x)| x).collect::<Vec<_>>()