title: Using an array find within an array find
body: <p>Is there a way to use an array locator function as the condition to an array locator function? Something like the following:</p>
  
  <p>I know I can simply loop through the arrays but I'm hoping for a more concise method</p>
  
  <pre><code>module tb;
    typedef struct {
      string name;
      int id;
    } positions_t;
  
    typedef struct {
      positions_t positions[];
      string unit_name;
    } injector_t;
  
    injector_t injectors[$] = '{
      '{
        unit_name: "unit1",
        positions: '{
          '{name: "ha", id:0},
          '{name: "he", id:0},
          '{name: "hi", id:0}
        }
      }
    };
  
    injector_t filtered_injectors[$];
  
    initial begin
      // LIKE THIS!
      filtered_injectors = injectors.find with (
        item.positions.find with (item.name == "hi")
      );
      $display("filtered list = %p", filtered_injectors);
    end
  endmodule
  
  </code></pre>