concept argument in category kotlin

appears as: rguments, n argument, arguments, argument, rgument
The Joy of Kotlin

This is an excerpt from Manning's book The Joy of Kotlin.

But how did you find 14? By applying to the tuple of arguments the same process that you’ll be implementing for the function. It might fail because humans aren’t perfect. But most often it will succeed because this test consists of doing the same thing twice: once in your head and once with a computer program. This isn’t different from writing the implementation first, then running it with the given parameters, and then writing the test to verify it is the same output.

which means that the result of applying the function f to the argument x is a new function g. Applying this g function to y gives the following:

g(y) = x + y

When applying g, x is no longer a variable but a constant. It doesn’t depend on the argument or on anything else. If you apply this to (3, 5), you get the following:

is a pure function. The fact that it always returns the same value whatever the arguments are is irrelevant, as is the fact that the function name has nothing to do with what the function returns. This function is a constant.