/* __ *\ ** ________ ___ / / ___ Scala API ** ** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL ** ** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ // $Id$ // generated by genprod on Thu Apr 19 18:52:00 CEST 2007 (with fancy comment) package scala /**

* Function with 2 parameters. *

*

In the following example the definition of * max is a shorthand for the anonymous class definition * anonfun2: *

*
 *  object Main extends Application {
 *
 *    val max = (x: Int, y: Int) => if (x < y) y else x
 *
 *    val anonfun2 = new Function2[Int, Int, Int] {
 *      def apply(x: Int, y: Int): Int = if (x < y) y else x
 *    }
 *
 *    Console.println(max(0, 1))
 *    Console.println(anonfun2(0, 1))
 *  }
*/ trait Function2[-T1, -T2, +R] extends AnyRef { def apply(v1:T1, v2:T2): R override def toString() = "" }