Loading TOC...

MarkLogic 9 Product Documentation
fn functions (Higher-Order)

The Higher-Order built-in functions are XQuery functions to support higher-order functions, and are part of the XQuery 3.0 working draft. They are defined in XPath and XQuery Functions and Operators 3.0.

8 functions
Function name Description
fn:filter Returns those items from the sequence $seq for which the supplied function $function returns true.
fn:fold-left Processes the supplied sequence from left to right, applying the supplied function repeatedly to each item in turn, together with an accumulated result value.
fn:fold-right Processes the supplied sequence from right to left, applying the supplied function repeatedly to each item in turn, together with an accumulated result value.
fn:function-arity Returns the arity of the function(s) that the argument refers to.
fn:function-lookup Returns a function with the given name and arity, or the empty sequence if none exists.
fn:function-name Returns the QName of the function(s) that the argument refers to.
fn:map Applies the function item $function to every item from the sequence $seq in turn, returning the concatenation of the resulting sequences in order.
fn:map-pairs Applies the function item $function to successive pairs of items taken one from $seq1 and one from $seq2, returning the concatenation of the resulting sequences in order.