Inlining vs Specialization

Do you have an example of a “generic inline functions just to avoid the boxing/unboxing of primitives”? I don’t really understand what you are getting at.

To my understanding inlining in Kotlin is mainly intended (but not limited) to avoid unnecessary object creation with lambda functions. A case that the JVM is not capable of optimising on the fly.