Open jderijke opened 2 years ago
The slides corresponding to this lesson have an error for single expression functions fun double(x: Int): Int { x 2 } should be fun double(x: Int): Int { return x 2 }
Also the return type can be omitted from the compact version
The slides corresponding to this lesson have an error for single expression functions fun double(x: Int): Int { x 2 } should be fun double(x: Int): Int { return x 2 }
Also the return type can be omitted from the compact version