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
I'm interested in representing multisets.
In particular, instead of plain lists, like:
'[A, B, A, C]
or perhaps sets with repeated elements:
Set '[A, B, A, C]
I'm looking for something like:
Set '[ (A, 2), (B, 1), (C, 1) ]
Now, I can achieve something like this with Maps:
Map
Map '[ A :-> Int, B :-> Int, C :-> Int ]
But those Ints would be given a value during runtime. What I want to resolve the values of those Ints during compile time:
Int
Map '[ A :-> 2, B :-> 1, C :-> 1 ]
It tried the obvious way, but it complains that:
• Expected kind ‘[Mapping Symbol *]’, but ‘'[A ':-> 1]’ has kind ‘[Mapping * Nat]’
Any advice?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm interested in representing multisets.
In particular, instead of plain lists, like:
or perhaps sets with repeated elements:
I'm looking for something like:
Now, I can achieve something like this with
Map
s:But those
Int
s would be given a value during runtime. What I want to resolve the values of thoseInt
s during compile time:It tried the obvious way, but it complains that:
Any advice?
The text was updated successfully, but these errors were encountered: