Closed apparentlymart closed 5 years ago
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
In Terraform console in v0.12.0-alpha1, the following should produce a reasonable result:
I expected this to return the same tuple produced by the expression
[[], ["a"]]
, but instead it crashed:It looks like the function's
Type
callback iterated the map keys in a different order than itsImpl
callback, causing a type mismatch.ElementIterator
on a map value incty
ought to iterate the keys in consistent lexicographical order, so this may be acty
bug rather than a bug in the function.This example probably won't reproduce 100% of the time since I expect the map traversal order is Go's random order, rather than something deterministic.