- From: <bugzilla@jessica.w3.org>
- Date: Mon, 01 Oct 2012 09:53:45 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19158 Summary: Getting all vales from a map Product: XPath / XQuery / XSLT Version: Working drafts Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: XSLT 3.0 AssignedTo: mike@saxonica.com ReportedBy: jakub@maly.cz QAContact: public-qt-comments@w3.org To get all values from a map as a single sequence I write for $k in map:keys($mymap) return $mymap($k) which is long and also probably ineffective (O(NlogN)?) I propose to add a function map:values($mymap) which would return all values from a map as a sequence. Unlike the code above, it could be implemented in O(N). Also, when I have a map entry (a map containing one item) in variable $entry, I can write map:keys($entry) to get the key of the entry. To get the value, I must write $entry(map:keys($entry)), which is a bit convoluted and could be replaced by map:values($entry). -- 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 09:53:50 UTC