MarkLogic 10 Product Documentation
fn:head

fn:head(
   $seq as item()*
) as item()?

Summary

Returns the first item in a sequence. For more details, see XPath 3.0 Functions and Operators.

Parameters
$seq A sequence of items.

Example

fn:head((1,2,3))
=> 1
Powered by MarkLogic Server | Terms of Use | Privacy Policy