This page talks about ''higher-order functions'' introduced with [[XQuery 3.0]]. The BaseX-specific <code>hof</code> module containing some more very usful functions can be found at [[Higher-Order Functions Module]].
{{Version|7.7}}: In the upcoming version of the [http://www.w3.org/TR/xpath-functions-30 XQuery Functions and Operators] specification, some functions will be modified! Function arguments are now placed last in the function signature. Details are found below.
=Function Items=
===fn:for-each===
{{Mark|Updated with Version 7.7:}} the function has been renamed, and the arguments have been swapped.<br/>
{|
===fn:filter===
{{Mark|Updated with Version 7.7:}} the arguments have been swapped.<br/>
{|
===fn:for-each-pair===
{{Mark|Updated with Version 7.7:}} the function has been renamed, and the arguments have been swapped.<br/>
{|
===fn:fold-left===
{{Mark|Updated with Version 7.7:}} the <code>$seq</code> and <code>$fun</code> arguments have been swapped.<br/>
{|
===fn:fold-right===
{{Mark|Updated with Version 7.7:}} the {{Code|$seq}} and {{Code|$fun}} arguments have been swapped.<br/>
{|