March 2018
Intermediate to advanced
500 pages
12h 40m
English
Functions are declared with the fun keyword. The following is a simple function definition:
fun printSum(a: Int, b: Int) { print(a + b)}
The function simply prints the sum of two values that have been passed as arguments to it. Function definitions can be broken down into the following components:
Read now
Unlock full access