Named Parameter and Default Arguments
Understand function parameter flexibility and clarity with named arguments.
We'll cover the following
When we declare functions, we often specify optional parameters. A good example is joinToString
, which transforms an iterable into a String
. We can use it without any arguments, or we can also change its behavior with concrete arguments.
Get hands-on with 1200+ tech skills courses.