^^^(_:_:)

public func ^^^<T, R, B>(lhs: Parser<T, R>, rhs: @escaping @autoclosure () -> B) -> Parser<T, B>

Convenience operator for map operation. Replaces the result of lhs with rhs if lhs succeeded.

  • T

    Declaration

    Swift

    public func ^^^<T, R, B>(lhs: Parser<T, R>, rhs: @escaping @autoclosure () -> B) -> Parser<T, B>