fromState<S, C, L, R> function

StateReaderTaskEither<S, C, L, R> fromState<S, C, L, R>(
  1. State<S, R> f
)

Returns a StateReaderTaskEither that resolves to the given Either.

Implementation

StateReaderTaskEither<S, C, L, R> fromState<S, C, L, R>(State<S, R> f) =>
    StateReaderTaskEither((s) => RTE.right(f(s)));