15 Matching Annotations
  1. Jul 2018
  2. Mar 2018
    1. A Scala function that’s created with val is very different than a method created with def.

      这里才是我最想看到的

    2. 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

  3. Nov 2017