This lecture explores Kotlin syntax for defining and
calling functions. It introduces the important concept of
lambda expressions and examines the various ways
in which they can be simplified, and their role as arguments to
higher-order functions. Finally, it looks at the use of lambdas in
Kotlin's with
and apply
functions.
(Use of the latter is commonplace in idiomatic Android code for
configuring widgets or intents.)