Is map() not supported by any of the EDA tools? I tried on all available simulators, but it gives compile errors.
module tb;
class A;
int arr[] = {1,2,3,4,5,6};
function void print();
arr = arr.map() with (item + 1'b1);
$display("%0p", arr);
endfunction
endclass
initial begin
A a = new();
a.print();
end
endmodule