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