~ubuntu-branches/debian/sid/scala/sid

« back to all changes in this revision

Viewing changes to src/library/scala/Function5.scala

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg, Mehdi Dogguy, Lucas Satabin, Frank S. Thomas, Emmanuel Bourg
  • Date: 2015-06-05 23:52:59 UTC
  • mfrom: (1.2.11)
  • Revision ID: package-import@ubuntu.com-20150605235259-wk00vgk83dh8o19g
Tags: 2.10.5-1
* Team upload.

[ Mehdi Dogguy ]
* New upstream release (Closes: #744278).

[ Lucas Satabin ]
* Update patches
* Update the clean target
* Update paths of elements to install
* Update watch file

[ Frank S. Thomas ]
* Remove myself from Uploaders.

[ Emmanuel Bourg ]
* The package has been adopted by the Java Team (Closes: #754935)
* Patched the build to avoid downloading libraries from the Internet
* Replaced the minified JavaScript files with unobfuscated ones
* No longer build scala-partest.jar until diffutils is packaged or replaced
* debian/watch: Fixed the versions matched (x.y.z instead of x.y.z..z)
* debian/rules:
  - Added the missing get-orig-source target (Closes: #724704)
  - Improved the clean target
* debian/control:
  - Build depend on scala (>= 2.10) and bnd
  - Use canonical URLs for the Vcs-* fields
  - Standards-Version updated to 3.9.6 (no changes)
* Switch to debhelper level 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
   *  @return   the result of function application.
19
19
   */
20
20
  def apply(v1: T1, v2: T2, v3: T3, v4: T4, v5: T5): R
21
 
 
22
21
  /** Creates a curried version of this function.
23
22
   *
24
23
   *  @return   a function `f` such that `f(x1)(x2)(x3)(x4)(x5) == apply(x1, x2, x3, x4, x5)`
25
24
   */
26
 
  def curried: T1 => T2 => T3 => T4 => T5 => R = {
 
25
  @annotation.unspecialized def curried: T1 => T2 => T3 => T4 => T5 => R = {
27
26
    (x1: T1) => ((x2: T2, x3: T3, x4: T4, x5: T5) => self.apply(x1, x2, x3, x4, x5)).curried
28
27
  }
29
 
  @deprecated("Use 'curried' instead", "2.8.0")
30
 
  def curry = curried
31
 
 
32
28
  /** Creates a tupled version of this function: instead of 5 arguments,
33
29
   *  it accepts a single [[scala.Tuple5]] argument.
34
30
   *
35
31
   *  @return   a function `f` such that `f((x1, x2, x3, x4, x5)) == f(Tuple5(x1, x2, x3, x4, x5)) == apply(x1, x2, x3, x4, x5)`
36
32
   */
37
 
  def tupled: Tuple5[T1, T2, T3, T4, T5] => R = {
 
33
 
 
34
  @annotation.unspecialized def tupled: Tuple5[T1, T2, T3, T4, T5] => R = {
38
35
    case Tuple5(x1, x2, x3, x4, x5) => apply(x1, x2, x3, x4, x5)
39
36
  }
40
37
  override def toString() = "<function5>"