summaryrefslogtreecommitdiff
path: root/src/library/scala/Function1.scala
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-04-16 14:45:25 +0000
commit92ec9e276b481844860a07f1e9e64dff2c4ce7f8 (patch)
tree7930a55bb4868ab45f98f80d0bdf57accf3f9e39 /src/library/scala/Function1.scala
parent374b34db53f480d51507a554abfe029ee20d1c2b (diff)
downloadscala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.gz
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.tar.bz2
scala-92ec9e276b481844860a07f1e9e64dff2c4ce7f8.zip
Improvements to genprod
Added uncurry to Function2, swap to Tuple2.
Diffstat (limited to 'src/library/scala/Function1.scala')
-rw-r--r--src/library/scala/Function1.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library/scala/Function1.scala b/src/library/scala/Function1.scala
index 3909fda336..edeee899de 100644
--- a/src/library/scala/Function1.scala
+++ b/src/library/scala/Function1.scala
@@ -1,7 +1,7 @@
/* __ *\
** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2007, LAMP/EPFL **
+** / __/ __// _ | / / / _ | (c) 2002-2008, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
@@ -9,7 +9,7 @@
// $Id$
-// generated by genprod on Thu Apr 19 18:52:00 CEST 2007 (with fancy comment) (with extra methods)
+// generated by genprod on Wed Apr 16 16:26:09 CEST 2008 (with fancy comment) (with extra methods)
package scala
@@ -31,19 +31,19 @@ package scala
* <b>def</b> apply(x: Int): Int = x + 1
* }
*
- * Console.println(succ(0))
- * Console.println(anonfun1(0))
+ * println(succ(0))
+ * println(anonfun1(0))
* }</pre>
*/
trait Function1[-T1, +R] extends AnyRef {
def apply(v1:T1): R
override def toString() = "<function>"
- /** (f compose g)(x) = f(g(x))
+ /** (f compose g)(x) == f(g(x))
*/
def compose[A](g: A => T1): A => R = { x => apply(g(x)) }
- /** (f andThen g)(x) = g(f(x))
+ /** (f andThen g)(x) == g(f(x))
*/
def andThen[A](g: R => A): T1 => A = { x => g(apply(x)) }