Posts
1 postScala Tutorial 번역 (Nested Functions ~ Currying)
Nested Functions스칼라에서 중첩 함수(Nested function)를 사용할 수 있다. 다음의 예제에 선언된 object는 기준값(threshold)이하의 값을 걸러내는 filter 함수를 제공한다. object FilterTest extends App { def filter(xs: List[Int], threshold: Int) = { def process(ys: List[Int]) : List[Int] = { if(ys.isEmpty) ys //주어진 List가 비어있을 경우, 그대로 반환. else if (ys.head



