Pavel
Effect
fun test(): Effect<X, Int> = effect { 1 } fun test2(num: Int): Effect<X, Int> = effect { num + 1 } (test().flatMap { num -> test2(num) }): Effect<X, Int>
simon.vergauwen
effect
effect { val num = test().bind() val num2 = test2(num).bind() num + num2 }
Either#bind
ensureNotNull
bind()
A modern programming language that makes developers happier.