def above(that: Element): Element = { val this1 = this widen that.width val that1 = that widen this.width assert(this1.width == that1.width) elem(this1.contents ++ that1.contents) }
In the above code snippet - What do u mean by line 2? what is the value of this1 and what is implied by this line? I am new to scala and still learning my basics using the
http://www.artima.com/pins1ed/assertions-and-unit-testing.html
Thanks in advance!
Regards
def above(that: Element): Element = { val this1 = this.widen(that.width) val that1 = that.widen(this.width) assert(this1.width == that1.width) elem(this1.contents ++ that1.contents) }
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.