0:00 / 0:00
#kotlin#inlinefunctions#lambdas
Inline Functions: inline, crossinline, and noinline
Dave Leeds
16K subscribers • 19 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Dave Leeds
Intermediate. Assumes working knowledge.
12K views2 years ago1 recommendation
Programming languagesPerformance and optimizationFunctional programming
Dave Leeds explains the nuances of Kotlin inline functions, including how to use crossinline and noinline to control lambda parameter behavior.
Most of us understand the basics of what it means to inline a function, but in Kotlin, there are some nuances that affect how you can use lambdas that are passed to them. In this video, we'll cover the basics of inline functions, and then learn about those nuances - and how we can use crossinline and noinline to get the behavior that we want. ✨ New to Kotlin? Start your journey here: typealias.com/start/ ... or pick up the new Leanpub Edition for offline access and more! book.typealias.com/ 🚀 Get the inside scoop on everything I'm working on - join my brand new email newsletter! Sign up here: newsletter.typealias.com/ Introduction Basics of Inline Functions Non-Local Returns Nesting Inline Lambda Parameter Calls with crossinline Referencing Lambda Parameters with noinline Summary of inline, crossinline, and noinline Closing Thoughts and Additional ResourcesWhy it's here
1 person recommends thisWhat people say. Recommended as a clear explanation of inline functions and their modifiers in Kotlin.