java.lang.Object
dev.metaschema.core.metapath.function.library.FnHead

public final class FnHead extends Object
Implements the XPath 3.1 fn:head function.
  • Method Details

    • fnHead

      public static IItem fnHead(List<? extends IItem> sequence)
      Return the first item in the sequence.
      Parameters:
      sequence - the sequence to check
      Returns:
      IItem first item in the sequence for a sequence null otherwise no item is returned