Package-level declarations
Continuations for working with custom types (e.g. Outcome
)
val outcome1: Outcome<String, Int> = Present(1)
val outcome2: Outcome<String, Int> = Present(2)
outcome {
val a = outcome1.bind()
val b = outcome2.bind()
a + b
}
Content copied to clipboard