change<U> method

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

Runs the given function, which changes the returned ParseResult into one relating to a U object.

Implementation

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