πŸ‘‹ Kotlin Functions

Functions help you organize code into reusable blocks. Let’s check out how to define and use them.

πŸ“ Defining a Function

Output will appear here...

πŸ” Return Values

πŸ’‘ Tip: You can use single-expression functions for simple returns: fun double(x: Int) = x * 2