@leiteiro wrote:
Consider integer vectors, Ivect(n) = Vector{Int}(undef, n).
If you access a vector A = Ivect(n) with indices < 1 or > n,
a BoundsError is thrown.How can you introduce an integer vector type that simply returns 0 in these cases?
Posts: 6
Participants: 3