Array reduction operator question

In reply to rag123:

module top();
int q[]; int result[];
int arr[$];

initial begin
arr = {9,1,8};
q = {9, 1, 8, 3, 4, 4};
$display(“1. queue ‘q’ in decimal : %p”, q);

**//result = q.find(i) with (i == arr[i]);
foreach (arr[i]) begin
result.push_back(int’(arr.find_first(x) with (x == q[i])));
end
$display("1. find with i inside arr[i] : %p ",result );
**
end
endmodule : top