PS : 48
psn > a15 > a80
A method that is not defined with a function body (which is specified using '=' sign) is considered as Procedure in Scala. A Procedure is a function that has side effects. A procedure always return Unit
scala> // If we miss equal-to sign, then a function is considered as Procedure scala> def fn1(no:Int) { no + 5 } fn1: (no: Int)Unit
No comments:
Post a Comment