I often fall into the following situation:
For example in C #:
string variavel= "x";
boolean b = (variavel == "a" || variavel == "d" ||.....|| variavel== "y");
Is there any way to simplify something like b = ("a" || "b" || .... "and")?
Besides being annoying, I think it will improve readability a lot if there is something similar. Switch case does not help much.