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
build-in show cannot convert array of var enum to string #711
Comments
This bug will be fixed in the next release. However, it should be noted that in your example, the declaration of If you want to create a string based on actual solution values and use it from the output item, you can annotate the declaration with
|
Thanks for explaining this.
could you please show what I'm doing wrong here? |
The third argument expects an array mapping each index of the start/duration arrays to the string name to display, so you can get them using a comprehension like Here's an example:
However, typically you would actually just use the two argument version - it will automatically get the names from the index set, so just using
Would give the same result. You could however use the three argument version if you wanted to give different names that weren't just generated from the enum variant names:
|
I have the following code:
running this gives:
Version 2.7.5
The text was updated successfully, but these errors were encountered: