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

Improvement: Sort function returns a list of int instead of list of $$E #853

Open
CervEdin opened this issue Oct 7, 2024 · 0 comments
Open
Labels
enhancement resolved Issue is resolved and the feature or fix will be part of next release

Comments

@CervEdin
Copy link

CervEdin commented Oct 7, 2024

The sort function currently returns a list of int instead of list of $$E
https://docs.minizinc.dev/en/stable/lib-globals-sort.html#mzn-ref-globals-sort-sort

so this fails

enum E = e(1..2);
array[int] of E: X = sort([e(2), e(1)]);

example

I'd suggest it be improved so that it returns $$E instead of int

@cyderize cyderize added enhancement resolved Issue is resolved and the feature or fix will be part of next release labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement resolved Issue is resolved and the feature or fix will be part of next release
Projects
None yet
Development

No branches or pull requests

2 participants