Created
August 25, 2016 21:48
-
-
Save dtrailin/c2fb2af563a97117a031c8f2870b6ea8 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
| if (x is String){ | |
| println(x) | |
| } | |
| // can be replaced with | |
| (x as? String)?.let { println(x) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't that be println(it)?