blob: cf579d8de42552ffc875c94770e33fe9b39dc6a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class MyVector[A] {
def map[B](f: A => B): MyVector[B] = sys.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 })
}
}
|