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

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

    • fnRemove

      @NonNull public static <T extends IItem> List<T> fnRemove(@NonNull List<T> target, @NonNull IIntegerItem positionItem)
      Remove the specified item at position from the sequence.
      Type Parameters:
      T - the type for the given Metapath sequence
      Parameters:
      target - the sequence of Metapath items from which we will remove the item
      positionItem - the position of the item in the sequence to be removed
      Returns:
      sequence the new sequence with the item removed