diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-08 06:56:21 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-08 06:56:21 +0000 |
commit | 8b28292b5379a34fad0599335116b9e54ee44e20 (patch) | |
tree | 654c93a14a26e802948aa80664efb7aea7b448d3 /src/library | |
parent | be31934db38a93468b6390e783ca377da6283c19 (diff) | |
download | scala-8b28292b5379a34fad0599335116b9e54ee44e20.tar.gz scala-8b28292b5379a34fad0599335116b9e54ee44e20.tar.bz2 scala-8b28292b5379a34fad0599335116b9e54ee44e20.zip |
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.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Responder.scala | 5 |
1 files changed, 2 insertions, 3 deletions
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 |