Created
February 17, 2026 01:14
-
-
Save skydoves/b35f42e55bdad01120c56fd35e873aea to your computer and use it in GitHub Desktop.
Kotlin Inline Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inline fun inlineHigherOrderExample(operation: (Int) -> Int): Int { | |
| return operation(10) | |
| } | |
| val result = inlineHigherOrderExample { it * 2 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment