Or in functional rust
(1..5)
.into_iter()
.filter(|i| i % 3 == 1)
.map(|i| i * i)
.sum();
I don't know if we really need a new syntax for map reduce.