Intermediate Kotlin
Q55 / 100

What does crossinline do in an inline function?

Correct! Well done.

Incorrect.

The correct answer is B) Prohibits non-local returns from the lambda while still allowing inlining

B

Correct Answer

Prohibits non-local returns from the lambda while still allowing inlining

Explanation

crossinline is needed when a lambda is invoked in a different execution context (e.g., inside another lambda) where non-local returns would be unsafe.

Progress
55/100