From 8b28292b5379a34fad0599335116b9e54ee44e20 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 8 Aug 2011 06:56:21 +0000 Subject: Fixing all the tests and source which still use... Fixing all the tests and source which still use the old for comprehension syntax with vals where there are no vals and no vals where there are vals. No review. --- src/library/scala/Responder.scala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/library') diff --git a/src/library/scala/Responder.scala b/src/library/scala/Responder.scala index 919ba130d4..189d75a4ae 100644 --- a/src/library/scala/Responder.scala +++ b/src/library/scala/Responder.scala @@ -46,12 +46,11 @@ object Responder { } def loop[A](r: Responder[Unit]): Responder[Nothing] = - for (_ <- r; val y <- loop(r)) yield y + for (_ <- r; y <- loop(r)) yield y def loopWhile[A](cond: => Boolean)(r: Responder[Unit]): Responder[Unit] = - if (cond) for (_ <- r; val y <- loopWhile(cond)(r)) yield y + if (cond) for (_ <- r; y <- loopWhile(cond)(r)) yield y else constant(()) - } /** Instances of responder are the building blocks of small programs -- cgit v1.2.3