Anonymous Scala function syntax

前端 未结 3 450
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-28 18:17

I\'m learning more about Scala, and I\'m having a little trouble understanding the example of anonymous functions in http://www.scala-lang.org/node/135. I\'ve copied the ent

3条回答
  •  滥情空心
    2020-12-28 18:55

    You are partially applying the ModN function. Partial function application is one of the main features of functional languages. For more information check out these articles on Currying and Pointfree style.

提交回复
热议问题