since `let` returns what its lambda returned, you ...
# android
o
since
let
returns what its lambda returned, you can use it like this:
Copy code
val name = getNameOrNull()  // : String?
val length = name?.let { it.length() } // : Int? == either length of string or null if string was null