Open gszep opened 2 years ago
Is there a way to return a default value such as NaN or 0 instead of throwing a BoundsError when there is no value within array a in the vicinity of a given index? Similar to the behaviour of DefaultDict and DefaultOrderedDict · DataStructures.jl
NaN
0
BoundsError
a
Is there a way to return a default value such as
NaN
or0
instead of throwing aBoundsError
when there is no value within arraya
in the vicinity of a given index? Similar to the behaviour of DefaultDict and DefaultOrderedDict · DataStructures.jl