Page 477 (PDF page 513):
On page 477, in the first line of body of the method '+=', we have:
if (exported) copy()
I checked the scaladoc of the class ListBuffer, but I did not any method
called 'copy()', where is it defined?
|
Page 578 (PDF page 612):
In the code listing 25.3 it can be read:
"def map[B, That](p: Elem => B)(implicit bf: CanBuildFrom[B, That,
This]): That" since CanBuildFrom definition is "CanBuildFrom[-From,
-Elem, +To]" I expected to read "...(implicit bf: CanBuildFrom[This, B,
That]): That" so I downloaded Scala's source code and found the
definition was wrongly typed in the book. On the other hand, the function
parameter name is "p" whereas it is referred as "f" below.
|