1 Matching Annotations
  1. Mar 2018
    1. 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