Skip to content

Assert that ranges are not decreasing - #720

Open
annevk wants to merge 1 commit into
mainfrom
range-assert
Open

annevk wants to merge 1 commit into
mainfrom
range-assert

Conversation

@annevk

@annevk annevk commented Aug 30, 2026

Copy link
Copy Markdown
Member

Both variants said they create an ordered set "as long as m is greater than or
equal to n" (or greater than n), which left the decreasing case open to
interpretation. Turn them into steps so that the precondition can be a proper
assert.

Also note that the exclusive range is usually what is needed for lists, and move
the example next to the inclusive range it illustrates.

Both variants said they create an ordered set "as long as m is greater than or
equal to n" (or greater than n), which left the decreasing case open to
interpretation. Turn them into steps so that the precondition can be a proper
assert.

Also note that the exclusive range is usually what is needed for lists, and move
the example next to the inclusive range it illustrates.
@annevk
annevk requested a review from zcorpan September 7, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant