Hacker News new | ask | show | jobs
by LordDragonfang 1544 days ago
>For example calling isNullOrBlank() on a nullable string changes to the type to nullable if the answer is false

For anyone confused like I was, that's a typo, it changes the type to not nullable. Likewise, isNullOrBlank() is an extension of the listed isNullOrEmpty().

https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-...

https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/is-...