bind<B> method

  1. @override
StateT<F, S, B> bind<B>(
  1. covariant Function1<A, StateT<F, S, B>> f
)
override

Implementation

@override StateT<F, S, B> bind<B>(Function1<A, StateT<F, S, B>> f) => new StateT(_FM, (S s) => _FM.bind(_FM.pure(() => _run(s)), (F tt()) {
  return _FM.bind(tt(), (Tuple2<A, S> t) => f(t.value1)._run(t.value2));
}));