Beginner
Kotlin
Q27 / 100
What does the let scope function do?
Correct! Well done.
Incorrect.
The correct answer is B) Executes a lambda on a non-null object and returns the lambda's result; object is referred to as it
B
Correct Answer
Executes a lambda on a non-null object and returns the lambda's result; object is referred to as it
Explanation
let is often used for null-safe chaining: nullableObj?.let { doSomethingWith(it) }. It returns the lambda result.
Progress
27/100