index
:
compiler-explorer
local
main
compiler explorer
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
examples
/
rust
/
Sum_over_array.rs
blob: 8d49e2f020253a35c16acc5838418e588dc602bf (
plain
)
1
2
3
pub
fn
sum_array
(
input
:
&
[
i32
])
->
i32
{
input
.
iter
().
sum
()
}