Marc Knaup
12/28/2019, 2:31 PMraulraja
12/28/2019, 5:59 PMAndThen
that allows you to propagate stack safe function composition https://arrow-kt.io/docs/apidocs/arrow-core-data/arrow.core/-and-then/index.html#andthen
It jumps after 127 calls in the stack https://github.com/arrow-kt/arrow/blob/7d9228afc16e451e666c563e9670f6422000a3f7/modules/core/arrow-core-data/src/main/kotlin/arrow/core/AndThen.kt#L200-L214
https://github.com/arrow-kt/arrow/blob/7d9228afc16e451e666c563e9670f6422000a3f7/modules/core/arrow-core-data/src/main/kotlin/arrow/core/AndThen.kt#L73stacksafe
that wraps the incoming invocations and dispatches them ensuring they are stack safe and it nicely complements tailrec
for those cases where calls are not in tail position.Marc Knaup
12/29/2019, 1:10 AMraulraja
12/29/2019, 9:15 AMelizarov
12/29/2019, 9:52 AMMarc Knaup
12/29/2019, 9:53 AMelizarov
12/29/2019, 9:55 AMMarc Knaup
12/29/2019, 9:56 AM