P E N C I L
Login
Java8 Lambda
  1. Syntax shortcuts
    1. (a,b) -> { do something}
    2. a -> a > 1;
    3. (String a) -> a > 1
  2. Functions
    1. Supplier: () -> o

    2. Function:  a -> b
      If it's a method, can pass: Class::method
    3. .max(Comparing.compare(String::length)
    4. BinaryOperator  (a,b)=>c  all  have the same types
      Ex: stream.reduce((a,b)=>a+b)
    5. Predicate: o -> boolean