News for hackers. Stuff that matters.
Re:Java Functions: Every Java FunctionalInterface You Want by dfkf on Friday November 07, 2014 @10:44PM (#8575926)
It's Java's take on this. Java's version is somewhat longer, however.

  public delegate void Action<in T1>(T1 arg1);
  public delegate void Action<in T1, in T2>(T1 arg1, T2 arg2);
  public delegate void Action<in T1, in T2, in T3>(T1 arg1, T2 arg2, T3 arg3);
  public delegate TRet Func<out TRet>();
  public delegate TRet Func<in T1, out TRet>(T arg1);
  public delegate TRet Func<in T1, in T2, out TRet>(T1 arg1, T2 arg2);
  public delegate TRet Func<in T1, in T2, in T3, out TRet>(T1 arg1, T2 arg2, T3 arg3);

There are no comments on this comment yet.