[Bug 19158] Getting all vales from a map

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19158

--- Comment #1 from Michael Kay <mike@saxonica.com> 2012-10-01 16:53:43 UTC ---
A problem with map:values() is that in the general case it would return a
sequence of sequences, which we can't represent (except as a map...).
Flattening it wouldn't produce anything useful. The function could be useful in
the special case where the values are all singletons, but I'm not sure we
really want to specify it to work in that case and fail in other cases.

Another approach is to define map:entries which returns a sequence of "pairs",
each pair being a map with two entries, accessible via the keys "key" and
"value".

The reason we didn't put anything like this in the spec is that we weren't
comfortable with any of the designs. Some members wanted to add "tuples" to the
model, but we had a lack of consensus as to what they should look like (in
particular, whether the components of a tuple should be named or numbered).

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 1 October 2012 16:53:49 UTC