Hello fellow Kotlin Arrow peeps! I am drawing a bl...
# arrow
d
Hello fellow Kotlin Arrow peeps! I am drawing a blank here... what's the best way to combine two
Try
of different types into a
Try
of a third type?
Copy code
fun a(): Try<Int> = Try { 5 }
fun b(): Try<String> = Try { "Hello" }

fun c(): Try<Float> = 
    a()
        .map {
            it.toFloat() / b().fold({ throw RuntimeException() }, { it.length })
        }
I shouldn't need to call
fold
for this, right?