- From: <bugzilla@jessica.w3.org>
- Date: Tue, 12 Feb 2013 10:23:38 +0000
- To: public-qt-comments@w3.org
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 UTC