gregd
02/26/2018, 7:23 PMmap
over it? I know I could use Kotlin’s let
, but maybe there’s a proper FP way of doing this?Alisson Morais
02/26/2018, 7:38 PMval potentialNumber: Try<Option<Int>> = Try { Some(1) }
potentialNumber.map { maybeNumber ->
maybeNumber.map { "My number is $it" }
}
For more details, follow: https://arrow-kt.io
Hope that helps 🙂