From 283dd234905e6944114a602234bf41a97c1e5396 Mon Sep 17 00:00:00 2001 From: Genghis Yang Date: Wed, 9 Jan 2019 16:48:37 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=87=92=20to=20=3D>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The character ⇒ cannot be run. --- src/main/scala/stdlib/PartiallyAppliedFunctions.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/PartiallyAppliedFunctions.scala b/src/main/scala/stdlib/PartiallyAppliedFunctions.scala index 7fba07cf..438ccb14 100644 --- a/src/main/scala/stdlib/PartiallyAppliedFunctions.scala +++ b/src/main/scala/stdlib/PartiallyAppliedFunctions.scala @@ -54,7 +54,7 @@ object PartiallyAppliedFunctions /** Currying allows you to create specialized versions of generalized functions: */ def specializedVersionPartiallyAppliedFunctions(res0: List[Int], res1: List[Int]) { - def customFilter(f: Int ⇒ Boolean)(xs: List[Int]) = + def customFilter(f: Int => Boolean)(xs: List[Int]) = xs filter f def onlyEven(x: Int) = x % 2 == 0 val xs = List(12, 11, 5, 20, 3, 13, 2)