Marius Kotsbak
11/19/2020, 1:21 PMaballano
11/19/2020, 1:30 PMaballano
11/19/2020, 1:31 PMkioba
11/19/2020, 2:31 PMnullable
continuation in case you are looking to express some logic inside the function.
fun test() = nullable {
val name = name.invoke()
val age = age.invoke()
doSth(name, age)
}
IE: few examples in arrow-core as well:
https://github.com/arrow-kt/arrow-core/blob/0a5a0a94dc5d855d38b2959489bbeb4fdc9c16d6/arrow-core-data/src/test/kotlin/arrow/core/computations/NullableTest.ktMarius Kotsbak
11/19/2020, 5:19 PM