Skip to main content
18-Opal
March 29, 2022
Solved

Weed out a Matrix

  • March 29, 2022
  • 1 reply
  • 1438 views

Lets say I have:

ppal_0-1648590513418.png

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:

ppal_1-1648590747433.png

What would be the easiest way?

 

 

Best answer by Werner_E

Maybe something like this:

Werner_E_0-1648595968555.png

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 😉

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
March 29, 2022

Maybe something like this:

Werner_E_0-1648595968555.png

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 😉

 

 

18-Opal
March 29, 2022

I use https://word.tips/wordle/  for wordle.