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

Make cut close last interval on the right #409

Merged
merged 2 commits into from
Dec 27, 2024
Merged

Make cut close last interval on the right #409

merged 2 commits into from
Dec 27, 2024

Conversation

nalimilan
Copy link
Member

This is much more useful, though slightly breaking.

Close #373.

This is much more useful, though slightly breaking.
@nalimilan nalimilan added this to the 1.0 milestone Dec 27, 2024
@nalimilan nalimilan requested a review from bkamins December 27, 2024 10:33
Copy link
Member

@bkamins bkamins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI errors. I understand that now last inverval is closed on both ends always (i.e. it is impossible to make it open on the right). I am OK with this, but I just wanted to confirm

@nalimilan
Copy link
Member Author

Yes. I considered adding an argument to allow having the last interval closed, but it would make the code more complex (it's already tricky) and it may not be useful. Hmisc's cut2 doesn't allow it so it doesn't seem essential.

@bkamins
Copy link
Member

bkamins commented Dec 27, 2024

I agree. That is why I approved, but I wanted to be sure I understand things correctly.

@nalimilan nalimilan merged commit bbac8dc into master Dec 27, 2024
14 of 16 checks passed
@nalimilan nalimilan deleted the nl/cut branch December 27, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make last interval closed in cut
2 participants