map

fun <S, T> Parser<S>.map(fn: (S) -> T): Parser<T>

Maps a parser output to a new value

Parameters

fn

A function to transform the parser output