inb4 someone writes clippy/rustfmt plugins to rewrite for loops to iterator chain garbage and tries to argue it's better.
-
-
I wish I could return / use ? from inside closures… the pain is real.
-
fn first_even(nums: Vec<i32>) -> Option<i32> { nums.each do |i| { if i % 2 == 0 { return Some(i) }; None }
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.