state_reader_task_either library

Classes

StateReaderTaskEither<S, C, L, R>

Functions

alt<S, C, L, R>(StateReaderTaskEither<S, C, L, R> orElse(L left)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
If the given StateReaderTaskEither is an Left, then unwrap the result and transform it into an alternative StateReaderTaskEither.
as<S, C, L, R1, R2>(R2 r2) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
ask<S, C, L>() StateReaderTaskEither<S, C, L, C>
Projects a value from the global context in a StateReaderTaskEither.
asks<S, C, L, R>(R f(C c)) StateReaderTaskEither<S, C, L, R>
Projects a value from the global context in a StateReaderTaskEither.
asUnit<S, C, L, R>(StateReaderTaskEither<S, C, L, R> task) StateReaderTaskEither<S, C, L, Unit>
call<S, C, L, R1, R2>(StateReaderTaskEither<S, C, L, R2> chain) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
chainModify<S, C, L>(S f(S s)) StateReaderTaskEither<S, C, L, Unit> Function(StateReaderTaskEither<S, C, L, dynamic>)
chainPut<S, C, L>(S s) StateReaderTaskEither<S, C, L, Unit> Function(StateReaderTaskEither<S, C, L, dynamic>)
chainTryCatchK<S, C, L, R, R2>(FutureOr<R2> task(R value), L onError(dynamic err, StackTrace stackTrace)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R>)
A chainable variant of tryCatchK.
delay<S, C, L, R>(Duration d) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Do<S, C, L, R>(DoFunction<S, C, L, R> f) StateReaderTaskEither<S, C, L, R>
evaluate<S, C, L, R>(StateReaderTaskEither<S, C, L, R> f) ReaderTaskEither<C, L, R> Function(S s)
execute<S, C, L, R>(StateReaderTaskEither<S, C, L, R> f) ReaderTaskEither<C, L, S> Function(S s)
filter<S, C, L, R>(bool predicate(R value), L orElse(R value)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Conditionally filter the StateReaderTaskEither, transforming Right values to Left.
flatMap<S, R, E, A, B>(StateReaderTaskEither<S, R, E, B> f(A a)) StateReaderTaskEither<S, R, E, B> Function(StateReaderTaskEither<S, R, E, A>)
flatMapEither<S, C, L, R1, R2>(Either<L, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapFirst<S, C, L, R>(StateReaderTaskEither<S, C, L, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Composes computations in sequence, using the return value from the previous computation. Discarding the result.
flatMapFirstEither<S, C, L, R>(Either<L, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapFirstReader<S, C, L, R>(Reader<C, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapFirstReaderTaskEither<S, C, L, R>(ReaderTaskEither<C, L, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapFirstState<S, C, L, R>(State<S, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapFirstTask<S, C, L, R>(Task f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapFirstTaskEither<S, C, L, R>(TaskEither<L, dynamic> f(R a)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
flatMapOption<S, C, L, A, B>(Option<B> f(A a), L onNone(A a)) StateReaderTaskEither<S, C, L, B> Function(StateReaderTaskEither<S, C, L, A>)
flatMapR<S, C, L, R1, R2>(ReaderTaskEither<C, L, R2> Function(S s) f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapReader<S, C, L, R1, R2>(Reader<C, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapReaderTask<S, C, L, R1, R2>(ReaderTask<C, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapReaderTaskEither<S, C, L, R1, R2>(ReaderTaskEither<C, L, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapS<S, C, L, R>(ReaderTaskEither<C, L, S> Function(S s) f(R a)) StateReaderTaskEither<S, C, L, Unit> Function(StateReaderTaskEither<S, C, L, R>)
flatMapState<S, C, L, R1, R2>(State<S, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapTask<S, C, L, R1, R2>(Task<R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapTaskEither<S, C, L, R1, R2>(TaskEither<L, R2> f(R1 a)) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)
flatMapTuple2<S, R, E, A, B>(StateReaderTaskEither<S, R, E, B> f(A a)) StateReaderTaskEither<S, R, E, dynamic> Function(StateReaderTaskEither<S, R, E, A>)
flatMapTuple3<S, R, E, A, B, C>(StateReaderTaskEither<S, R, E, C> f(dynamic a)) StateReaderTaskEither<S, R, E, Tuple3<A, B, C>> Function(StateReaderTaskEither<S, R, E, dynamic>)
flatten<S, C, L, R>(StateReaderTaskEither<S, C, L, StateReaderTaskEither<S, C, L, R>> srte) StateReaderTaskEither<S, C, L, R>
fromEither<S, C, L, R>(Either<L, R> either) StateReaderTaskEither<S, C, L, R>
Returns a StateReaderTaskEither that resolves to the given Either.
fromOption<S, C, E, A>(E onNone()) StateReaderTaskEither<S, C, E, A> Function(Option<A> fa)
fromPredicate<S, C, L, R>(R r, bool f(R r), L orElse(R r)) StateReaderTaskEither<S, C, L, R>
If the function returns true, then the resolved Either will be a Right containing the given value.
fromPredicateK<S, C, L, R>(bool f(R r), L orElse(R r)) StateReaderTaskEither<S, C, L, R> Function(R r)
If the function returns true, then the resolved Either will be a Right containing the given value.
fromReader<S, C, L, R>(Reader<C, R> f) StateReaderTaskEither<S, C, L, R>
Transforms a Reader into a StateReaderTaskEither, wrapping the result in an Right.
fromReaderTask<S, C, L, R>(ReaderTask<C, R> f) StateReaderTaskEither<S, C, L, R>
Transforms a ReaderTask into a StateReaderTaskEither, wrapping the result in an Right.
fromReaderTaskEither<S, C, L, R>(ReaderTaskEither<C, L, R> rte) StateReaderTaskEither<S, C, L, R>
Returns a StateReaderTaskEither that resolves to the given ReaderTaskEither.
fromState<S, C, L, R>(State<S, R> f) StateReaderTaskEither<S, C, L, R>
Returns a StateReaderTaskEither that resolves to the given Either.
fromTask<S, C, L, R>(Task<R> task) StateReaderTaskEither<S, C, L, R>
Transforms a Task into a StateReaderTaskEither, wrapping the result in an Right.
fromTaskEither<S, C, L, R>(TaskEither<L, R> taskEither) StateReaderTaskEither<S, C, L, R>
Returns a StateReaderTaskEither that resolves to the given TaskEither.
get<S, C, L>() StateReaderTaskEither<S, C, L, S>
gets<S, C, L, R>(R f(S s)) StateReaderTaskEither<S, C, L, R>
left<S, R, E, A>(E e) StateReaderTaskEither<S, R, E, A>
makeDo<S, C, L>() StateReaderTaskEither<S, C, L, R> Function<R>(DoFunction<S, C, L, R> f)
Create a Do notation factory for the given generics
map<S, R, E, A, B>(B f(A a)) StateReaderTaskEither<S, R, E, B> Function(StateReaderTaskEither<S, R, E, A>)
mapLeft<S, C, L1, L2, R>(L2 f(L1 a)) StateReaderTaskEither<S, C, L2, R> Function(StateReaderTaskEither<S, C, L1, R>)
modify<S, C, L, R>(S f(S s)) StateReaderTaskEither<S, C, L, Unit>
orElse<S, C, L, R>(StateReaderTaskEither<S, C, L, R> orElse) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Similar to alt, but the alternative ReaderTaskEither is given directly.
pure<S, C, L, R, R2>(R2 a) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R>)
Replace the StateReaderTaskEither with one that resolves to an Right containing the given value.
put<S, C, L>(S s) StateReaderTaskEither<S, C, L, Unit>
sequence<S, R, E, A>(Iterable<StateReaderTaskEither<S, R, E, A>> arr) StateReaderTaskEither<S, R, E, IList<A>>
tap<S, C, L, R>(FutureOr<void> f(R r)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Run a side effect on a Right value. The side effect can optionally return a Future.
tapLeft<S, C, L, R>(FutureOr<void> f(L value)) StateReaderTaskEither<S, C, L, R> Function(StateReaderTaskEither<S, C, L, R>)
Run a side effect on a Left value. The side effect can optionally return a Future.
traverseIterable<S, R, E, A, B>(StateReaderTaskEither<S, R, E, B> f(A a)) StateReaderTaskEither<S, R, E, IList<B>> Function(Iterable<A>)
tryCatch<S, C, L, R>(FutureOr<R> task(), L onError(dynamic err, StackTrace stackTrace)) StateReaderTaskEither<S, C, L, R>
Runs the given task, and returns the result as an Right. If it throws an error, the the error is passed to onError, which determines the Left value.
tryCatchK<S, C, A, L, R>(FutureOr<R> task(A value), L onError(dynamic err, StackTrace stackTrace)) StateReaderTaskEither<S, C, L, R> Function(A value)
A variant of tryCatch that accepts an external parameter.
tryCatchK2<A, B, S, C, L, R>(FutureOr<R> task(A a, B b), L onError(dynamic err, StackTrace stackTrace)) StateReaderTaskEither<S, C, L, R> Function(A a, B b)
A variant of tryCatch that accepts two external parameters.
unit<S, R, E>() StateReaderTaskEither<S, R, E, Unit>
zipRight<S, C, L, R1, R2>(StateReaderTaskEither<S, C, L, R2> chain) StateReaderTaskEither<S, C, L, R2> Function(StateReaderTaskEither<S, C, L, R1>)

Typedefs

DoFunction<S, C, L, R> = Future Function(_DoAdapter<S, C, L> $, S initialState, C context)