Inline Functions: inline, crossinline, and noinline
4.6 هزار بار بازدید -
4 ماه پیش
-
Most of us understand the
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: https://typealias.com/start/
... or pick up the new Leanpub Edition for offline access and more! https://book.typealias.com/
🚀 Get the inside scoop on everything I'm working on - join my brand new email newsletter!
Sign up here: https://newsletter.typealias.com/
00:00 Introduction
00:24 Basics of Inline Functions
03:31 Non-Local Returns
04:58 Nesting Inline Lambda Parameter Calls with crossinline
07:33 Referencing Lambda Parameters with noinline
09:22 Summary of inline, crossinline, and noinline
10:32 Closing Thoughts and Additional Resources
✨ New to Kotlin? Start your journey here: https://typealias.com/start/
... or pick up the new Leanpub Edition for offline access and more! https://book.typealias.com/
🚀 Get the inside scoop on everything I'm working on - join my brand new email newsletter!
Sign up here: https://newsletter.typealias.com/
00:00 Introduction
00:24 Basics of Inline Functions
03:31 Non-Local Returns
04:58 Nesting Inline Lambda Parameter Calls with crossinline
07:33 Referencing Lambda Parameters with noinline
09:22 Summary of inline, crossinline, and noinline
10:32 Closing Thoughts and Additional Resources
4 ماه پیش
در تاریخ 1403/01/29 منتشر شده
است.
4,602
بـار بازدید شده