MonadNanoRead<T> extension

An extension of NanoRead that makes NanoRead act as a monad, i.e. the method binder can be called with a callback, which returns a new NanoRead instance containing the values returned by the NanoRead instance most recently returned by binder.

on

Methods

bind<S>(NanoRead<S> binder(T)) NanoRead<S>
Binds this NanoRead with the given callback binder and returns a new NanoRead instance as a result.