diff options
author | Seth Tisue <seth@tisue.net> | 2015-10-13 18:32:04 +0200 |
---|---|---|
committer | Seth Tisue <seth@tisue.net> | 2015-10-13 18:32:04 +0200 |
commit | d792e35e68bd424902d713a993e2fcdfec044914 (patch) | |
tree | 43840caeaebc12e2c40d8620b1de579ad7529a83 /src/library/scala/runtime/Tuple3Zipped.scala | |
parent | 648c7a1635f88fb14b999a8d36e01a71761b9001 (diff) | |
parent | b19a07ed15f8a633e0463e52839c956963a9c2f9 (diff) | |
download | scala-d792e35e68bd424902d713a993e2fcdfec044914.tar.gz scala-d792e35e68bd424902d713a993e2fcdfec044914.tar.bz2 scala-d792e35e68bd424902d713a993e2fcdfec044914.zip |
Merge pull request #4789 from janekdb/2.11.x-param-names-predicates-operations
Rename forall, exists and find predicate and operator params.
Diffstat (limited to 'src/library/scala/runtime/Tuple3Zipped.scala')
-rw-r--r-- | src/library/scala/runtime/Tuple3Zipped.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library/scala/runtime/Tuple3Zipped.scala b/src/library/scala/runtime/Tuple3Zipped.scala index ffd44acf81..cde7699d40 100644 --- a/src/library/scala/runtime/Tuple3Zipped.scala +++ b/src/library/scala/runtime/Tuple3Zipped.scala @@ -90,13 +90,13 @@ final class Tuple3Zipped[El1, Repr1, El2, Repr2, El3, Repr3](val colls: (Travers result } - def exists(f: (El1, El2, El3) => Boolean): Boolean = { + def exists(@deprecatedName('f) p: (El1, El2, El3) => Boolean): Boolean = { val elems2 = colls._2.iterator val elems3 = colls._3.iterator for (el1 <- colls._1) { if (elems2.hasNext && elems3.hasNext) { - if (f(el1, elems2.next(), elems3.next())) + if (p(el1, elems2.next(), elems3.next())) return true } else return false @@ -104,8 +104,8 @@ final class Tuple3Zipped[El1, Repr1, El2, Repr2, El3, Repr3](val colls: (Travers false } - def forall(f: (El1, El2, El3) => Boolean): Boolean = - !exists((x, y, z) => !f(x, y, z)) + def forall(@deprecatedName('f) p: (El1, El2, El3) => Boolean): Boolean = + !exists((x, y, z) => !p(x, y, z)) def foreach[U](f: (El1, El2, El3) => U): Unit = { val elems2 = colls._2.iterator |