In Kotlin, functions are first-class citizens: you declare them with the fun keyword, store them in variables, pass them to other functions, and return them as values. Kotlin also removes a lot of boilerplate with default arguments, named arguments, and concise single-expression functions, so you rarely need function overloading.
This module then moves on to lambda expressions, short anonymous functions written in curly braces, and higher-order functions, which take functions as parameters or return them. You'll see trailing lambda syntax and the implicit it parameter, the building blocks behind much of Kotlin's standard library and modern Android code.
Watch the lessons in order, then continue on to Classes & OOP.
A beginner-friendly introduction to declaring and calling functions in Kotlin, including default and named arguments.
Shows how to write flexible functions using default parameter values and named arguments at the call site.
An introduction to lambda functions and higher-order functions in Kotlin and how they are used in practice.
A step-by-step guide to higher-order functions and lambdas, for beginners and those deepening their Kotlin skills.