fromNullableK<A, L, R> function
Create a TaskEither from a nullable value. onNone
is executed if the
value (given to the returned function) is null
.
Implementation
TaskEither<L, R> Function(A value) fromNullableK<A, L, R>(
R? Function(A value) f,
L Function(A value) onNone,
) =>
(a) => fromNullable(f(a), () => onNone(a));