map

fun <I : Any, O, R, U : Any> Parser<I, O, U>.map(transform: (O) -> R): Parser<I, R, U>

Transforms the success value of this parser using transform.

Sugar for pMap: a.map { … } is equivalent to pMap(a) { … }.

Prefer trailing-lambda call style over infix to avoid visual ambiguity.