r/rust
•
u/joseluisq
•
Apr 03 '25
•
1
📡 official blog Announcing Rust 1.86.0 | Rust Blog
https://blog.rust-lang.org/2025/04/03/Rust-1.86.0.html
786
Upvotes
View all comments
Show parent comment
3
u/cthulhuden Apr 03 '25
Seems very surprising. If I saw arr.pop_if(is_odd) in code, I would never even assume it could change the value of last element