Named Parameter and Default Arguments

Understand function parameter flexibility and clarity with named arguments.

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 1400+ tech skills courses.