Created
June 2, 2018 05:43
-
-
Save thomasnield/b46240d686606c50f9d1fdf35a822858 to your computer and use it in GitHub Desktop.
Kotlin Puzzler- Elvis Backfires
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
| val x: Int? = 2 | |
| val y: Int = 3 | |
| val sum = x?:0 + y | |
| println(sum) | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get the answer you thought you were going to get: