3 ms·
Looking at the Scala API for List, I see the following: def flatMap [B] (f: (A) ⇒ GenTraversableOnce[B]): List[B] Seems nice and readable to me. The full de
by robinst 15y ago
Looking at the Scala API for List, I see the following:
def flatMap [B] (f: (A) ⇒ GenTraversableOnce[B]): List[B]
Seems nice and readable to me. The full declaration is below it, but this "use case" documentation is usually enough.
http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.List http://www.scala-lang.org/api/current/index.html#scala.colle...