# fn:head - XPath XQuery Reference

Returns the first item in a sequence. deterministiccontext-independentfocus-independentThe function returns the value of the expression $arg[1]fn:head(1 to 5)1fn:head(("a", "b", "c"))"a"fn:head(())()fn:head([1,2,3])[1,2,3]If $arg is the empty sequence, the empty sequence is returned. Otherwise
            the first item in the sequence is returned.