Open pr-lawrence opened 7 years ago
2장 읽으면서 느꼈던 것중에 하나가 Currying 예제 나오는 부분이였어요. <A, B, C, D> String func(A a, B b, C c, D d) 를 currying 형태로 바꾸려면 Function<A, Function<B, Function<C, Function<D, String>>>>... 이렇게 해야한다는거 스칼라에서는 def로 선언하고 했으면 되는데.. 타입추론이 안되서 이런 문제가 있구나 결론은 자바로 Functional Programming을 하려면 저런것들이 해결되야하는데, 언어적 차원에서 힘들어 보이는데....
Inverse functions
Partial functions
Function composition
Functions of several arguments
Function currying
Partially applied functions
Functional methods
Composing functions
lambdas
Higher-order functions(HOF)
Variance
Method references
Closures
Recursive functions