A lambda expression can receive parameters. The same sort of list of parameters
that you can put in a function declaration can go at the start of the lambda
expression, separated from the Kotlin statements by an arrow (
can then refer to those parameters from those Kotlin statements.
To supply values for the parameters, add them to your call to
If your lambda expression needs just one parameter, you can skip the parameter
list and refer to the parameter as
You can learn more about this in: