Weed out a Matrix
Lets say I have:

I want to Weed("v","n","p","h","j") and end up with ["k" "l" "m" "n" "o"]
or Weed ("v" "w" "x" "y" "z")
So this should take out the first row and I am left with:

What would be the easiest way?
Lets say I have:

I want to Weed("v","n","p","h","j") and end up with ["k" "l" "m" "n" "o"]
or Weed ("v" "w" "x" "y" "z")
So this should take out the first row and I am left with:

What would be the easiest way?
Maybe something like this:

BTW, from this and your previous posts I am not convinced that your datastructure of having each character as separate string is the optimal one as its rather limiting IMHO. But of course I have no idea what you are actually trying to achieve at the end (hope its not just playing Wordle 😉
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.