Loading TOC...

MarkLogic 9 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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.