map<I, O> function

MapParser<I, O> map<I, O>(
  1. Parser<I> p,
  2. O f(
    1. I
    )
)

Creates the MapParser parser.

Implementation

MapParser<I, O> map<I, O>(Parser<I> p, O Function(I) f) => MapParser(p, f);