Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return default value such as 0 or NaN instead of throwing BoundsError #207

Open
gszep opened this issue Apr 17, 2022 · 0 comments
Open

return default value such as 0 or NaN instead of throwing BoundsError #207

gszep opened this issue Apr 17, 2022 · 0 comments

Comments

@gszep
Copy link

gszep commented Apr 17, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant