How Does One Make Scala Control Abstraction in Repeat Until?
- by peter_pilgrim
Hi
I am Peter Pilgrim. I watched Martin Odersky create a control abstraction in Scala. However I can not yet seem to repeat it inside IntelliJ IDEA 9. Is it the IDE?
package demo
class Control {
def repeatLoop ( body: = Unit ) = new Until( body )
class Until( body: = Unit ) {
def until( cond: = Boolean ) {
body;
…