I have a string which is a space-seperated sequence of codes such as "O R LE Pdc"
. The code needs to check if a code matches any object in a table (such as {"R", "BE", "Cre"}
) return true, if not, return false. Here, it would return true because "R" exists.
I am completely stumped and do not know how to solve this problem.