Skip to content

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

@gszep

Description

@gszep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions