SkipOnSuccess2
zio.parser.internal.stacksafe.ParserOp.SkipOnSuccess2
final case class SkipOnSuccess2(checkBranchPosition: Boolean, transform: Any => Any) extends ParserOp
If the result is success, skip the next two parser operations. Optionally if the transform is not null, it replaces the result with the transform function applied to it. This can be used to shortcut the right side of an or operation. If checkBranchPosition is true, the last branch position will be popped and checked and if the position was moved the left failure is kept and the next operations get skipped.
Attributes
- Graph
-
- Supertypes
Members list
In this article