← ZIO Parser docs

TransformResultFlipped

zio.parser.internal.stacksafe.ParserOp.TransformResultFlipped
final case class TransformResultFlipped(onSuccess: (Int, Any) => ParserError[Any], onFailure: (Int, ParserError[Any]) => Any) extends ParserOp

Pop the last result from the stack, transform it and with one of the functions and push back. It converts success to failure and failure to success.

Attributes

Source
ParserOp.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ParserOp
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

Attributes

Source
ParserOp.scala