title: Can a java lambda have more than 1 parameter?
body: <p>In Java, is it possible to have a lambda accept multiple different types?</p>
  
  <p>I.e:
  Single variable works:</p>
  
  <pre><code>    Function &lt;Integer, Integer&gt; adder = i -&gt; i + 1;
      System.out.println (adder.apply (10));
  </code></pre>
  
  <p>Varargs also work:</p>
  
  <pre><code>    Function &lt;Integer [], Integer&gt; multiAdder = ints -&gt; {
          int sum = 0;
          for (Integer i : ints) {
              sum += i;
          }
          return sum;
      };
  
      //.... 
      System.out.println ((multiAdder.apply (new Integer [] { 1, 2, 3, 4 })));
  </code></pre>
  
  <p>But I want something that can accept many different types of arguments, e.g:</p>
  
  <pre><code>    Function &lt;String, Integer, Double, Person, String&gt; myLambda = a , b, c, d-&gt;  {
      [DO STUFF]
      return "done stuff"
      };
  </code></pre>
  
  <p>The main use is to have small inline functions inside functions for convenience. </p>
  
  <p>I've looked around google and inspected Java's Function Package, but could not find. Is this possible?</p>