W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2012

[Bug 19158] Getting all vales from a map

From: <bugzilla@jessica.w3.org>
Date: Mon, 01 Oct 2012 16:53:43 +0000
Message-Id: <E1TIjFX-0003a1-Py@jessica.w3.org>
To: public-qt-comments@w3.org

--- 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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:40 UTC