1 Matching Annotations
- Mar 2018
-
alvinalexander.com alvinalexander.com
-
a val function, all you’re really doing with code like this is assigning a variable name to an anonymous function
val function like
val f = (a:Int, b:Int) => a+b
就是定义了一个 literal function, 然后给他一个名字 : f
-