
scala
iteye_19462
这个作者很懒,什么都没留下…
展开
-
Programming Scala - Functional Programming in Scala
Transform List(1, 2, 3, 4, 5) map { _ * 2 } Reduce List(1, 2, 3, 4, 5) reduceLeft { _ * _ } The first _ represents the argument that is accumulating the value of the reduction, and the secon...原创 2012-05-12 20:36:20 · 149 阅读 · 0 评论 -
Functional Programming in Scala - What is Functional Programming?
函数式编程,其实就是我们常用的method,procedure,function。原创 2012-05-12 16:50:39 · 115 阅读 · 0 评论