import compound; var arr: [int] = [1, 2, 3]; fn f(_, v: int): int { return v + 1; } print arr.map(f);