-
Notifications
You must be signed in to change notification settings - Fork 25
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
Sequence Enumeration #661
Comments
Ranges currently only work for sets:
So it's not a bug. You could do:
Does that help? |
If order is important, you could define a function like this:
|
PJ is right, there is no such thing as a sequence range. But I've often wondered why not, given that set ranges exist. They would be very useful sometimes. You could submit a request for a language extension to the Language Board? But it would take a while to get approved/implemented. |
@peterwvj @nickbattle Page 63 of the VDM manual mentions sequence enumeration? Maybe I've misinterpreted it? |
Sequence enumerations are just sequence constructors, e.g. |
Description
Sequence enumeration does not work.
Steps to Reproduce
[1,...,10] = Error 2034: Unexpected token in expression: ... in 'DEFAULT' (console) at line 1:4
Versions
Version: 2.5.2
Build date: 2017 Sep 11 10:27 CEST
Git commit description: Release/2.5.2.
The text was updated successfully, but these errors were encountered: