Say I define the following code:
val x: Seq[String] = Seq()
val y = x.toSet.map(s => (s, true))
This will not compile, giving me a missing parameter type error.
But if I break it down thus:
val x: Seq[String] = Seq()
val y = x.toSet
val z = y.map(s => (s, true))
it compiles fine. Why is this?