Programming, Scala, Data Type, Abstraction, Introduction.
are defined in at least two forms with the biggest distinction being whether you want the return type to be specified (explicit) or let the compiler infer it (implicit). val max:(Int, Int) => Int=(a,b) => { if(a > b) a else b } //Explicit val max = (a : Int, b : Int) => { if(a > b) a else b }