diff options
Diffstat (limited to 'test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala')
-rw-r--r-- | test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala b/test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala index 1268f94bac..4bd693a933 100644 --- a/test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala +++ b/test/benchmarks/src/scala/collection/parallel/benchmarks/generic/Operators.scala @@ -14,6 +14,8 @@ trait Operators[T] { def mapper2: T => T = error("unsupported") def heavymapper: T => T def taker: T => Boolean + def eachFun: T => Unit + def sequence(sz: Int): Seq[T] = error("unsupported") } @@ -40,6 +42,9 @@ trait IntOperators extends Operators[Int] { n + sum } val taker: Int => Boolean = _ < 10000 + val eachFun: Int => Unit = { n => + n % 2 == 0 + } } |