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

v: add in expr with numbers (var in 1..4) #22754

Merged
merged 13 commits into from
Nov 5, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Nov 4, 2024

@felipensp felipensp marked this pull request as ready for review November 4, 2024 15:33
felipensp and others added 6 commits November 5, 2024 06:41
assert y in 4..20
assert y !in min..max

assert (t() !in 1..3) == false
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
assert (t() !in 1..3) == false
assert t() in 1..3

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit 07eed88 into vlang:master Nov 5, 2024
71 checks passed
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.

Implement if num in start..end
2 participants