Use the builtins.elem function, like builtins.elem "a" ["a" "b"] # => true
builtins.elem
builtins.elem "a" ["a" "b"] # => true