摘要:
// 代码区块控制val Exit = new BreaksExit.breakable { for (j println("odd") case 2 | 4 | 6 | 8 | 10 => println("even")}trait Commandcase object Start extends Commandcase object Go extends Commandcase object Stop extends Commandcase object Whoa extends Commanddef executeCommand(cmd: C 阅读全文