We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
list of int
list of $$E
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
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
$$E
int
The text was updated successfully, but these errors were encountered:
Make sort functions return array of enum when input is array of enum.
58d2d79
Fixes #853.
No branches or pull requests
The
sort
function currently returns alist of int
instead oflist of $$E
https://docs.minizinc.dev/en/stable/lib-globals-sort.html#mzn-ref-globals-sort-sort
so this fails
example
I'd suggest it be improved so that it returns
$$E
instead ofint
The text was updated successfully, but these errors were encountered: