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

public final class MapForEach extends Object
Implements the XPath 3.1 map:for-each function.
  • Method Details

    • forEach

      @NonNull public static ISequence<?> forEach(@NonNull IMapItem<?> map, @NonNull BiFunction<IAnyAtomicItem,ISequence<?>,ISequence<?>> action)
      An implementation of XPath 3.1 map:for-each.
      Parameters:
      map - the map of Metapath items that is the target of retrieval
      action - the action to perform on each entry in the map
      Returns:
      a stream resulting from concatenating the resulting streams provided by the action result