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

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

    • reverse

      @NonNull public static <T extends ICollectionValue> IArrayItem<T> reverse(@NonNull IArrayItem<T> array)
      An implementation of XPath 3.1 array:reverse.
      Type Parameters:
      T - the type of items in the given Metapath array
      Parameters:
      array - the target Metapath array
      Returns:
      a new array containing the modification