Learning Kotlin: inline functions

Learning Kotlin: Inline functions

Rashi Karanpuria
AndroidPub
Published in
2 min readOct 11, 2017

--

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…

--

--

Rashi Karanpuria
AndroidPub

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