Learn Scala Programming
上QQ阅读APP看书,第一时间看更新

Questions

  1. Describe two ways to make it possible for some resource, R, to use it together with scala.util.Using resource management utility. 
  2. How can an instance of a Set and an instance of a List be compared to each other?
  3. Name the default concrete implementation for an immutable Seq.
  4. Name the default concrete implementation for an immutable indexed Seq.
  5. Name the default concrete implementation for a mutable Seq.
  6. Name the default concrete implementation for a mutable indexed Seq.
  7. It is sometimes said that List.flatMap is more powerful than it was expected to be. Can you explain why?
  8. Describe a way to map over a collection multiple times using different functions but without producing intermediate collections.