blob: 4323664e911bf3451a5bb56fcf7df48e44e95ad9 (
plain) (
tree)
|
|
class MyVector[A] {
def map[B](f: A => B): MyVector[B] = error("")
}
object Test {
def unzip[B, C](_this: MyVector[(B, C)]): (MyVector[B], MyVector[C]) = {
(_this.map{ bc => bc._1 }, _this.map{ bc => bc._2 })
}
}
|