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.
x
– the string to locate.vec
– the array of strings to search through.hit
– true
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.
function inArray input String x; input String vec[:]; output Boolean hit; end inArray;