这个obj-c代码在swift要怎么写?

 d1.getData = ^(NSUInteger item) {
    float x = [vals[item] floatValue];
    float y = [vals2[item] floatValue];
    NSString *label1 = [NSString stringWithFormat:@"%d", item];
    NSString *label2 = [NSString stringWithFormat:@"%f", y];
    return [LineChartDataItem dataItemWithX:x y:y xLabel:label1 dataLabel:label2];
};


这一行 d1.getData = ^(NSUInteger item) 不知在swift怎样写?

d1.getData = {(Int32 item)in
//do sth
}