blob: 624b83b1fae02057d97d0d952f5a946617c40573 (
plain) (
blame)
1
2
3
4
5
6
7
|
object Test {
def map[A,R](a : List[A], f : A => R) : List[R] = a.map(f);
def split(sn : Iterable[List[Cell[Int]]]) : Unit =
for (n <- sn)
map(n,ptr => new Cell(ptr.elem));
}
|