Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardKotlininvokedynamic for lambdasSingle-choice MCQ

How does the `invokedynamic`/`LambdaMetafactory` strategy treat a capturing lambda differently from a non-capturing one at the bytecode level?

fun adder(base: Int): (Int) -> Int = { x -> x + base } // captures base