Function Parameter Pattern Matching on multiple candidates?

You can use a guard for that

def foo(word) when word in [“a”, “b”] do
end