I have recently began learning q programming language and I find it a little bit of a struggle since I am coming from the 'traditional' imperative, OOP, etc language background. I am trying to perform a seemingly simple task - find strings in list that contain specific character:
names:("Saint Denis";"Rhodes";"Strawberry";"Valentine")
How do I print all strings that contain letter "R"? Even better, both "R" and "r"?
The furthest I was able to get is this:
{[x]x?"o"} each names
What would be the correct approach?
Thanks in advance!