OTHER·중요도 6·2026. 05. 31.·Dev.to
What Is a Function in Scala
── KO ──────────────────
Scala에서 함수는 일급 값으로 다루어지는 중요한 개념이다.
Scala와 함수형 프로그래밍에서 함수는 일급 값으로 취급되어 변수에 할당하거나 다른 함수의 인자로 전달될 수 있다. 이는 고차 함수, 함수 조합, 클로저 및 커링과 같은 강력한 코드 설계 기능을 가능하게 한다. Scala는 함수들을 String, Int와 같은 객체로 취급하여 이 특성을 구현하고 있다.
── EN ──────────────────
In Scala, functions are treated as first-class values, a key concept.
In Scala and functional programming, functions are treated as first-class values that can be assigned to variables and passed as arguments. This enables powerful code design capabilities such as higher-order functions, function composition, closures, and currying. Scala achieves this by treating functions as objects, similar to String or Int types.