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

Doesn't allow minimal intervals #1

Open
loveencounterflow opened this issue Sep 28, 2015 · 4 comments
Open

Doesn't allow minimal intervals #1

loveencounterflow opened this issue Sep 28, 2015 · 4 comments

Comments

@loveencounterflow
Copy link

When trying to add an interval whose start and end points coincide, an error is thrown. However, since both start and end are inclusive, that means the minimal length for an interval is 2, not 1. Conceptually, even intervals of length zero should be possible; however, since those can never match, they can be safely skipped. OTOH, intervals of length 1 are practically useful and should be supported IMHO.

@tnrich
Copy link

tnrich commented Nov 17, 2015

+1

@tnrich
Copy link

tnrich commented Nov 20, 2015

Any follow up on this @shinout ?

@tnrich
Copy link

tnrich commented Nov 24, 2015

for the time being, if people need this fix, they can install from https://github.com/tnrich/interval-tree2
npm i -S tnrich/interval-tree2

@vahobrsti
Copy link

@tnrich not working mate. any solution?

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

3 participants