> Obviously if the function is on a hot path iterating and summing with a number is far more efficient versus filtering.
I got curious and checked this in Rust, the generated assembly is the same!
I got curious and checked this in Rust, the generated assembly is the same!