We already covered the basics of functions in the next chapter. In this section, we'll cover additional features related to functions that are not present in Java, such as named arguments and default parameters.
Advanced functions
Named arguments
Kotlin supports naming arguments when passing them to functions. This can make your code more verbose but can improve its readability.
Java doesn't have named function arguments, and the common approach in Java is to use the builder pattern when your class or function accepts multiple arguments. This makes the code even more verbose. Consider this regionMatches function call on the String type; it accepts five arguments and three of them are of the ...