function new_sum(myvec::Vector{Int})
= zero(eltype(myvec))
s for i = eachindex(myvec)
+= myvec[i]
s end
return s
end
function new_sum_inbounds(myvec::Vector{Int})
= zero(eltype(myvec))
s @inbounds for i = eachindex(myvec)
+= myvec[i]
s end
return s
end
new_sum_inbounds (generic function with 1 method)