java.lang.Object
dev.metaschema.core.metapath.function.library.MapForEach
Implements the XPath 3.1 map:for-each
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISequence<?>forEach(IMapItem<?> map, BiFunction<IAnyAtomicItem, ISequence<?>, ISequence<?>> action) An implementation of XPath 3.1 map:for-each.
-
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 retrievalaction- the action to perform on each entry in the map- Returns:
- a stream resulting from concatenating the resulting streams provided by the action result
-