fn:head( $seq as item()* ) as item()?
Returns the first item in a sequence. For more details, see XPath 3.0 Functions and Operators.
fn:head((1,2,3)) => 1