# Inline functions in Kotlin

DevFeed: [Inline functions in Kotlin](<https://devfeed.tech/articles/inline-functions-in-kotlin-37173.md>)

Original publisher: [Read original article](<https://arkadiuszchmura.com/posts/inline-functions-in-kotlin/>)

Published: 2023-02-23T00:00:00Z

Content type: tutorial

Language: en

Sources: [Arkadiusz Chmura](<https://devfeed.tech/sources/arkadiusz-chmura.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [function](<https://devfeed.tech/topics/function.md>), [Code](<https://devfeed.tech/topics/code.md>), [IntelliJ IDEA](<https://devfeed.tech/topics/intellij-idea.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [examples](<https://devfeed.tech/tags/examples.md>), [function](<https://devfeed.tech/tags/function.md>), [guide](<https://devfeed.tech/tags/guide.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [practical](<https://devfeed.tech/tags/practical.md>), [tips](<https://devfeed.tech/tags/tips.md>)

## AI overview

This tutorial explains Kotlin inline functions, including how the compiler expands them at call sites and how they can reduce the runtime overhead of lambdas and anonymous functions. It uses practical examples and decompiled bytecode to discuss when inline functions are appropriate or should be avoided.

## Source excerpt

A comprehensive guide to inline functions, covering their purpose, practical examples, and tips for when to use or avoid them.