.Pharmacolibrary.Pharmacogenomics.PGx.inArray

Information

inArray

Checks membership of a string x in a string array vec. Returns true if an exact match is found in any element of vec, otherwise returns false.

Inputs:
x – the string to locate.
vec – the array of strings to search through.
Output:
hittrue if x matches any entry in vec, false otherwise.

This function is inlined for performance and used by PGx phenotype mapping routines to classify alleles.

Interface

function inArray
  input String x;
  input String vec[:];
  output Boolean hit;
end inArray;

Generated at 2025-06-04T18:20:49Z by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos