Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
955e500cea3ba7d3ce6cc266b7c6e21ef7f8c666
/
.
/
examples
/
rust
/
Sum_over_array.rs
blob: 8d49e2f020253a35c16acc5838418e588dc602bf [
file
] [
log
] [
blame
] [
raw
]
pub
fn
sum_array
(
input
:
&[
i32
])
->
i32
{
input
.
iter
().
sum
()
}