Why find_first_index/find_last_index functions return array?

In reply to dave_59:

unlike python I assume we need to explicitly declare the range to have negative numbers in verilog.


module test;
  int a[8:-1];
    initial begin
      a = '{1,2,3,4,5,6,7,8,9,10};
      $display(a[-1]);
    end
endmodule