I'm reading this: <https://android.jlelse.eu/inlin...
# announcements
d
I'm reading this: https://android.jlelse.eu/inline-noinline-crossinline-what-do-they-mean-b13f48e113c2 what's the behavior when I don't specify any of
inline
,
noinline
,
crossinline
?
d
Well,
inline
is different than the other two, since
inline
applies to functions, where as
noinline
and
crossinline
apply to parameters of inline functions. If your function is
inline
and you do not specify
noinline
or
crossinline
on a lambda parameter, then that lambda will be eliminated by inlining the function into the callsite.
d
Tnx! I got it