Changes

Jump to navigation Jump to search
39 bytes added ,  14:53, 12 December 2017
This article is part of the [[XQuery|XQuery Portal]]. The It provides a summary of the most important features of the [http://www.w3.org/TR/xquery-31/ XQuery 3.1] Recommendation are summarized here.
=Maps=
; Signatures
* <code>fn:apply($function as function(*), $array arguments as array(*)) as item()*</code>
A The supplied {{Code|$function }} is invoked with the specified {{Code|$arguments supplied by an array}}. The arity of the function must be the same as the size of the array.
Example:
fn:apply(concat#5, array { 1 to 5 }) (: 12345 :)
fn:apply(function($a) { sum($a) }, [ 1 to 5 ]) (: 15 :)
fn:apply(count#1, [ 1,2 ]) (: error (. the array has two members) :)
</pre>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu