applyWith

infix fun <S, A, B> (A) -> B.applyWith(parser: Parser<S, A>): Parser<S, B>

Applies a function to the result of a parser.

A.K.A <$>

Return

A parser that applies the function to the result of the parser.

Parameters

parser

The parser to apply the function to.