Transformation of Map Elements in Function #5595
-
Hello, I've encountered difficulty in recursively exchanging elements in a While
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, there are. Do you have more concrete questions we can help you with? 🙂 Two tips:
|
Beta Was this translation helpful? Give feedback.
-
You could also use the |
Beta Was this translation helpful? Give feedback.
I don't think that this is going in the right direction.
The second link I provided above explains how to implement
MapToSequence
. Concretely sections 2. Making the function compilable to 4. Proving there's a minimum answer it for the concrete case ofset<int>
comparable to your original question aboutmap<nat, string>
and sections 5. Total orders to 8. Coming back to map to sequence answer it for the generic case you are asking about here.For the
nat
case, here's a bit more to help you along: