In this lecture we will go over the basics of functions in Kotlin: how to declare functions using
fun, how to call them from
main, how parameters differ from arguments, how the return type is specified (
Int,
String,
Double,
Boolean), and why a function signature is a contract. At the end we will build a mini app, a “step tracker”, and discuss typical beginner mistakes.