In other languages, though, it's pretty neat. For example, in Rust one just does
data.iter().fold(0, |s, e| s + e)
In other languages, though, it's pretty neat. For example, in Rust one just does