map<U> method

Parser<U> map<U>(
  1. U f(
    1. ParseResult<T>
    )
)

Transforms the parse result using a unary function.

Implementation

Parser<U> map<U>(U Function(ParseResult<T>) f) {
  return new _Map<T, U>(this, f);
}