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

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

    • flatten

      @NonNull public static Stream<IItem> flatten(@NonNull List<? extends IItem> items)
      An implementation of XPath 3.1 array:flatten.
      Parameters:
      items - the items to flatten
      Returns:
      the stream of flattened items
    • flatten

      @NonNull public static Stream<IItem> flatten(@NonNull IItem item)
      An implementation of XPath 3.1 array:flatten.
      Parameters:
      item - the item to flatten
      Returns:
      the stream of flattened items