Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlinlambdas and trailing lambdasSingle-choice MCQ

In a trailing lambda passed to a function, what does a bare return statement target?

fun process(items: List<Int>) { items.forEach { if (it == 2) return println(it) } println("done") } process(listOf(1, 2, 3))