progs/comb1.scala
changeset 598 278b8b05f286
parent 594 ff496c243d10
child 599 0b512541f7ce
--- a/progs/comb1.scala	Tue Nov 06 00:48:53 2018 +0000
+++ b/progs/comb1.scala	Tue Nov 06 08:18:53 2018 +0000
@@ -142,7 +142,7 @@
 
 lazy val UCount : Parser[String, Int] =
   ("1" ~ UCount) ==> { case (x, y) => y + 1 } | 
-  "" ==> { (x) => 0 }
+  "" ==> { x => 0 }
 
 UCount.parse("11111")
 UCount.parse_all("11111")