[Bug 29080] array:members

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

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com

--- Comment #1 from Michael Kay <mike@saxonica.com> ---

Alternatively (1), an extension to FLWOR expressions that binds a variable to
each member in turn, as a sequence:

let $my-array := [(1,2,3), (4,5)]
for member $m in $my-array return count($m)

returns (3,2)

Alternatively or additionally (2), a more concise syntax for inline functions,
provisionally λ{expr}, so that this can be written, for example

$my:array => array:for-each(
   λ{ <hit>{$1}</hit> }
)

where $1 is implicitly bound to the first supplied argument.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 24 August 2015 14:59:34 UTC