Created
September 16, 2022 05:44
-
-
Save s1monw1/aa1c0cb38a632fe3ed7da801dc076467 to your computer and use it in GitHub Desktop.
This file contains 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 len = text?.run { | |
println("get length of $this") | |
length // `this.` can be omitted | |
} ?: 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment