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

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

    • fnReverse

      @NonNull public static <T extends IItem> List<T> fnReverse(@NonNull List<T> target)
      Reverse the order of items in the sequence.
      Type Parameters:
      T - the type for the given Metapath sequence
      Parameters:
      target - the sequence to check for reversal
      Returns:
      sequence the new sequence with items in reverse order.