Closed danielyli closed 8 years ago
Probably not gonna happen. The thing about maps and sets is that they are fundamentally unstructured: your map is going to render differently each time. If you want that, you can call .toSeq
, but I don't think it should be the default
For-expressions involving
Seq
s andList
s currently work within tags, butMap
s (or, more specifically,Iterable
s) do not.For example, the following compiles:
But this does not:
Changing the map to a sequence with
.toSeq
fixes the issue.This seems to be unintuitive and surprising behavior, since the tags effectively can handle
Seq
s andList
s but notIterable
s. Is it possible to add support?