Scala function

Function without parameters Simple Scala function Example def hello_world() = { println (“Hello world!”) } Hello world!   Function with parameters Example of a scalar function that supports parameters def sum_data(x: Int = 2, y: Int = 3): Int = { x +...