Skip to content

Feature request: get all intervals in an interval map that intersect a given one #24

@bluebear94

Description

@bluebear94

Example of what I want:

> (define r (make-interval-map '(((0 . 5) . apple) ((5 . 10) . banana))))
> (interval-map-ref/in r 2 7)
'(((2 . 5) . apple) ((5 . 7) banana))

Unresolved questions:

  • should we return the entire bounds (i.e. '(((0 . 5) . apple) ((5 . 10) banana))) instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions