FunctorNanoRead<T> extension

An extension of NanoRead that makes NanoRead act as a functor, i.e. the method map can be called with a callback, which returns a new NanoRead instance containing the values returned by the given callback, updated as the original NanoRead updates.

on

Methods

map<S>(S mapper(T)) NanoRead<S>
Maps this NanoRead with the given callback mapper and returns a new NanoRead instance as a result.