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

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

Open
bluebear94 opened this issue Aug 21, 2021 · 1 comment

Comments

@bluebear94
Copy link

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?
@bluebear94
Copy link
Author

This is already possible to do using interval-map-update*!, but I don't think this task should require users to use such a function.

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