Scala Library
|
|
scala/util/control/Breaks.scala
]
class
Breaks
extends
AnyRefval mybreaks = new Breaks import mybreaks.{break, breakable} breakable { for (...) { if (...) break } }Calls to break from one instantiation of Breaks will never target breakable objects of some other instantion.
Method Summary | |
def
|
break : Unit |
def
|
breakable
(op : => Unit) : Unit
A block from which one can exit with a `break''.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
Scala Library
|
|