Curry - Partial function explain http://stackoverflow.com/questions/8650549/using-partial-functions-in-scala-how-does-it-work/8650639#8650639 언제봐도 어렵고 헷갈리는 이 두가지 개념.... scala> def modN(n: Int, x: Int) = ((x % n) == 0) modN: (n: Int, x: Int)Boolean scala> modN(5, _ : Int) res0: Int => Boolean = scala> res0(10) res2: Boolean = true scala> def modNCurried(n: Int)(x: Int) = ((x % n) == 0) modNCurried: (n: Int)(x: Int)Boolean scala>.. 더보기 이전 1 2 3 4 5 6 7 8 ··· 713 다음