AndroidPub
Published in

AndroidPub

Learning Kotlin: inline functions

Learning Kotlin: Inline functions

Kotlin is packed with amazing features that make us fall in love with the language. One of them is high order functions which lets you pass functions as parameters as well as return functions. But the fact that they are stored as objects may make the use disadvantageous at times because of the memory overhead. The thing is, each object is allocated space in memory heap and the methods that call this method are also allocated…

--

--

--

The (retired) Pub(lication) for Android & Tech, focused on Development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rashi Karanpuria

Rashi Karanpuria

Software Engineer @ Google | Author of Kotlin Programming Cookbook | www.rashikaranpuria.com

More from Medium

Why Android developer ❤ to use Kotlin as a main language besides Java?

How to Avoid Model Changes Nightmare in Java or Kotlin

Async Jersey + Kotlin Coroutines

Null Safety in Kotlin