Consider the following code:
fn main() {
let greater_than_42 = (0..100).find(|x| *x > 42);
match greater_than_42 {
Some(x) => println!("{}", x),
None => println!("no numbers found"),
}
}
If I do this instead:
let greater_than_42 = (0..100).find(|x| x > &42);
would it compare memory addresses, instead of values?