bitnot
05/23/2020, 7:49 PMval (_) = Unpackable("Two")
does not call component1
?Milan Hruban
05/23/2020, 7:51 PMbitnot
05/23/2020, 8:01 PMThe componentN() operator functions are not called for the components that are skipped in this way.
part…Milan Hruban
05/23/2020, 9:23 PMbitnot
05/24/2020, 11:45 AMelizarov
05/25/2020, 8:37 AMcomponent1
with a side-effect 😱 My life will never be the samebitnot
05/25/2020, 8:11 PMcomponent1
is overloaded to call monad extension function bind
that calls suspendCoroutineUninterceptedOrReturn
😉
https://github.com/arrow-kt/arrow-core/blob/master/arrow-core-data/src/main/kotlin/arrow/typeclasses/MonadContinuations.kt#L31