Changes

Jump to navigation Jump to search
195 bytes added ,  12:17, 25 February 2021
no edit summary
This [[Module Library|XQuery Module]] contains various small utility and helper functions. Please note that some of the  For all listed functions are used for internal query rewritings. They , equivalent expressions exist in standard XQuery, but code may be renamed better readable with function calls: <syntaxhighlight lang="xquery">(: standard XQuery :)let $result := if(exists($sequence)) then $sequence else ('default', 'values')return $result[last()] (: XQuery with functions of this module :)$sequence=> util:or moved (('default', 'values'))=> util:last()</syntaxhighlight> In addition, various query optimizations create calls to other modules in future versions of BaseXthe utility functions.
=Conventions=
|-
| '''Summary'''
|Returns all members of an {{Code|$array}} as a sequence. Better composable and easier Equivalent to read than the equivalent, but shorter expression:
<syntaxhighlight lang="xquery">
$array ? *
|-
| '''Summary'''
|Returns all values of a {{Code|$map}} as a sequence. Better composable and easier Equivalent to read than the equivalent, but shorter expression:
<syntaxhighlight lang="xquery">
$map ? *
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu