Programming in Scala: A Comprehensive Step-by-Step Guide, 2nd Edition, page 546:
In the inheritance hierarchy below Iterable you find three traits: Seq, Set, and Map. A common aspect of these three traits is that they all implement the PartialFunction trait with its apply and isDefinedAt methods.
However, this code does not compile (tried both 2.8.2 and 2.10.2):
Set(1, 2, 3).isDefinedAt(1)
With error:
value isDefinedAt is not a member of scala.collection.immutable.Set[Int]
Is this a mistake in the book?