W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2013

[Bug 19158] [XT30] Getting all values from a map

From: <bugzilla@jessica.w3.org>
Date: Tue, 12 Feb 2013 10:23:38 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-19158-523-K7fArb4ehs@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19158

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Michael Kay <mike@saxonica.com> ---
The WG is proposing to add a map:fold function that takes as argument a
callback function which is called once for each entry in the map, with three
arguments: an accumulator value, and the key and value from the map entry.

Noted that this could be used to implement various other functions including
ones we already have such as map:keys() and new functions such as map:values()
which returns the flattened values.

Also noted that in principle map:fold could be implemented in terms of
fn:fold-left applied to the map:keys() sequence.

Use cases include grouping the entries in the map.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 12 February 2013 10:23:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 12 February 2013 10:23:40 GMT