Alias for aggregate
Alias for aggregateResults
Alias for andThenLeft
a aggregate b Apply a and apply b on the result of the application of a.
a aggregate b Apply a and apply b on the result of the application of a. This means:
If a fails then b is applied If b fails then only the result of a is used
a aggregateResults b Same as 'aggregate' but discard the transformed trees of a and b b operates on the origin tree, not the one transformed by a
a andThen b b is 'executed' only if a succeeded We discard the result of a
a andThenLeft b b is 'executed' only if a succeeded We discard the result of b and only keep the result of a
a feed {resa => b} combinator b can use the result (resa) of a.
Transform the result of the Matcher, will probably change
a orElse b Apply b only if a failed
a orThen b Apply b only if a failed but return a result of type b whaterver happens
a tupledResultsWith b Same as 'tupledWith' but discard the transformed trees of a and b b operates on the origin tree, not the one transformed by a
Combine the result of two TreeMappers in a tuple2.
Combine the result of two TreeMappers in a tuple2. The order is important, as the the second transformation is applied on the result of the first one.
Alias for orElse
Alias for orThen
Alias for tupledWith
Alias for andThen
(matcher: any2stringadd[Matcher[A]]).+(other)
A Matcher is a function or 'combinator' which takes a T and return an Option of tuple of - a transformed T (or the same) - a result of type A s.t Exists Monoid[A] so that results can be combined during the traversal A transformation/traversal has succeeded if the result of the application on the Matcher is not a None