blob: d5161a0f1a1ac9cce6e41fcf0f7b30f4a76087b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
package scala
package object collection {
import scala.collection.generic.CanBuildFrom // can't refer to CanBuild here
def breakOut[From, T, To](implicit b : CanBuildFrom[Nothing, T, To]) =
new CanBuildFrom[From, T, To] {
def apply(from: From) = b.apply() ; def apply() = b.apply()
}
}
|