Created
May 29, 2018 04:18
-
-
Save sajjadyousefnia/78ee6ebf71853a09ed129a178c8d4703 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
stringVariable?.run { | |
println("The length of this String is $length") | |
} | |
// Similarly. | |
stringVariable?.let { | |
println("The length of this String is ${it.length}") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment