Created
September 30, 2016 07:49
-
-
Save fabiomsr/7ac22749a1050984f9a9f62347e9e34b to your computer and use it in GitHub Desktop.
Kotlin: Boolean unbox
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 Boolean?.unbox() = this ?: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment