java 8의 모든 것
lambda가 많이 어렵네요.
coffeescript 만큼요.
왠지 python 따라 가는 듯한 느낌
Lambdas
The important property of functional interfaces is that they can be instantiated using lambdas. Lambda expressions enable you to treat functionality as method argument, or code as data. Here are a few examples of lambdas. The inputs are on the left and the code is on the right. The input types can be inferred and are optional.
(int x, int y) -> { return x + y; }
(x, y) -> x + y
x -> x * x
() -> x
x -> { System.out.println(x); }
The important property of functional interfaces is that they can be instantiated using lambdas. Lambda expressions enable you to treat functionality as method argument, or code as data. Here are a few examples of lambdas. The inputs are on the left and the code is on the right. The input types can be inferred and are optional.
(int x, int y) -> { return x + y; }
(x, y) -> x + y
x -> x * x
() -> x
x -> { System.out.println(x); }
