Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

relative complement of two intervals #65

Closed
urswilke opened this issue Nov 13, 2020 · 4 comments
Closed

relative complement of two intervals #65

urswilke opened this issue Nov 13, 2020 · 4 comments
Labels
bug Something isn't working Priority: Medium

Comments

@urswilke
Copy link

Thank you for the interesting package!

I was wondering if the result of this code

library(set6)
i1 <- Interval$new(0, 2)
i2 <- Interval$new(0, 1, type = "[)")
i1 - i2
#> (1,2]

shouldn't be:

[1,2].

@RaphaelS1
Copy link
Collaborator

Hey thanks for spotting this. It looks like the bug is slightly bigger than that, no matter what type is it's returning the same interval type, will fix this asap

@RaphaelS1 RaphaelS1 added bug Something isn't working Priority: Medium labels Nov 13, 2020
@RaphaelS1
Copy link
Collaborator

Closed in 110fac4

@urswilke
Copy link
Author

Thanks for the quick fix and glad if I could help.

I remember already having wished for a clean way to deal with (sets of) intervals. Your approach looks really amazing.

@RaphaelS1
Copy link
Collaborator

Thanks :) !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Priority: Medium
Projects
None yet
Development

No branches or pull requests

2 participants