Skip to content

numerical interval matching in case statements #477

Answered by podhrmic
podhrmic asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like

case (e1)
  e2, e3: s2;
...

is pretty close. Although it is still an enumeration, which can get tedious.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quark17
Comment options

@podhrmic
Comment options

Answer selected by podhrmic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants