This recipe can be thought of as an extension to the previous recipe, Specifying default values in functions. Default parameters and named arguments in the function together can bring down the number of method overloads by a huge amount. We've already seen how to use default parameters in functions; now, let's see how to use name arguments.
Using named arguments in functions
Getting ready
We will be using IntelliJ IDEA to write and execute our code. You can use whatever development environment you are comfortable with.
How to do it...
Another step...