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

lib: major restructuring of has_interval #2560

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

fridis
Copy link
Member

@fridis fridis commented Feb 14, 2024

Added new feature interval that is the result of infix ...

Renamed lower/upper as from/through for clarity.

Clarified behaviour for step equal to zero, which is now forbidden, or negative step with from >= through.

Fixed overflow for large intervals like (i8 -128 .. 127 : 4).contains 4.

Added option.val, option.or_else, num_option.or_else and num_option.as_list since they turned out useful even though I ended up not using all of them in this patch.

Added new feature `interval` that is the result of `infix ..`.

Renamed lower/upper as from/through for clarity.

Clarified behaviour for `step` equal to zero, which is now forbidden, or
negative `step` with `from >= through`.

Fixed overflow for large intervals like `(i8 -128 .. 127 : 4).contains 4`.

Added `option.val`, `option.or_else`, `num_option.or_else` and
`num_option.as_list` since they turned out useful even though I ended up not
using all of them in this patch.
lib/num_option.fz Outdated Show resolved Hide resolved
lib/option.fz Outdated Show resolved Hide resolved
lib/interval.fz Outdated Show resolved Hide resolved
lib/interval.fz Show resolved Hide resolved
@fridis fridis merged commit 733c7a6 into main Feb 22, 2024
5 checks passed
@fridis fridis deleted the lib_remove_has_interval_max branch February 22, 2024 13:31
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

Successfully merging this pull request may close these issues.

None yet

2 participants