equal
deleted
inserted
replaced
312 val empty: Perspective = Perspective(Nil) |
312 val empty: Perspective = Perspective(Nil) |
313 } |
313 } |
314 |
314 |
315 sealed case class Perspective(commands: List[Command]) // visible commands in canonical order |
315 sealed case class Perspective(commands: List[Command]) // visible commands in canonical order |
316 { |
316 { |
|
317 def is_empty: Boolean = commands.isEmpty |
|
318 |
317 def same(that: Perspective): Boolean = |
319 def same(that: Perspective): Boolean = |
318 { |
320 { |
319 val cmds1 = this.commands |
321 val cmds1 = this.commands |
320 val cmds2 = that.commands |
322 val cmds2 = that.commands |
321 require(!cmds1.exists(_.is_undefined)) |
323 require(!cmds1.exists(_.is_undefined)) |