julian
05/03/2022, 1:40 AMEffect
. It all made sense to me, except for this:
Only whenWhat does pure values mean? I know what a pure function is, but I don't think I've ever come across pure values.is called it will create afold
and run the computation, this meansContinuation
can encodeEffect
asside-effects
.pure values
simon.vergauwen
05/03/2022, 6:44 AMfun error(): Nothing = TODO()
val impure: String = error()
val pure: Effect<Nothing, String> = effect {
error()
}
stojan
05/03/2022, 8:56 AMsimon.vergauwen
05/03/2022, 9:08 AMfun error()
shouldn't have suspend
in my example. Updated itsimon.vergauwen
05/03/2022, 9:08 AMjulian
05/03/2022, 4:42 PM