When I type into a Scala worksheet an expression, say,
8 * 5 + 2
the right hand side shows
res0: Int = 42
But then when I type in res0, I get an error. What gives? Does the worksheet not know about the res variables? If not, why are you displaying them in the right hand side?