diff options
Diffstat (limited to 'src/library/scala/Function1.scala')
-rw-r--r-- | src/library/scala/Function1.scala | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/src/library/scala/Function1.scala b/src/library/scala/Function1.scala index 38b84025b9..f5855370a0 100644 --- a/src/library/scala/Function1.scala +++ b/src/library/scala/Function1.scala @@ -6,34 +6,31 @@ ** |/ ** \* */ - -// generated by genprod on Thu Sep 16 10:52:35 PDT 2010 (with fancy comment) (with extra methods) +// generated by genprod on Sat Oct 16 11:19:09 PDT 2010 (with fancy comment) (with extra methods) package scala -/** <p> - * Function with 1 parameter. - * </p> - * <p> +/** Function with 1 parameter. + * * In the following example the definition of - * <code>succ</code> is a shorthand for the anonymous class - * definition <code>anonfun1</code>: - * </p> - * <pre> - * <b>object</b> Main <b>extends</b> Application { + * succ is a shorthand for the anonymous class + * definition anonfun1: * - * <b>val</b> succ = (x: Int) => x + 1 + * {{{ + * object Main extends Application { + * val succ = (x: Int) => x + 1 * - * <b>val</b> anonfun1 = <b>new</b> Function1[Int, Int] { - * <b>def</b> apply(x: Int): Int = x + 1 + * val anonfun1 = new Function1[Int, Int] { + * def apply(x: Int): Int = x + 1 * } * * println(succ(0)) * println(anonfun1(0)) - * }</pre> + * } + * }}} */ trait Function1[@specialized(scala.Int, scala.Long, scala.Float, scala.Double) -T1, @specialized(scala.Unit, scala.Boolean, scala.Int, scala.Float, scala.Long, scala.Double) +R] extends AnyRef { self => def apply(v1:T1): R |