inline fun foo ( ... ) // <-- this will inline ...
# announcements
i
inline fun foo ( ... ) // <-- this will inline all lambdas passed to foo, AND it will also inline all calls of foo ?
g
Yes, that is correct. But also depends on how you use passed lambdas, you cannot inline lambda that then passed to another non-inline method. Also there is crossinline modifier for lamdbdas to inline body of lamda as part if another lambda