map<S> method

NanoRead<S> map<S>(
  1. S mapper(
    1. T
    )
)

Maps this NanoRead with the given callback mapper and returns a new NanoRead instance as a result.

Implementation

NanoRead<S> map<S>(S Function(T) mapper) {
  // Create and return a _FunctorNanoRead, which handles all logic.
  return _FunctorNanoRead(this, mapper);
}