Last active
November 18, 2019 11:11
-
-
Save deeperunderstanding/cb3a4b00bb2b0f91b186b346203fa0b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main() { | |
val resultA : Try<String> = Try { "Hello, World" } | |
val resultB : Try<String> = Try { throw Exception("Not Today!") } | |
println(resultA) | |
println(resultB) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment