You can use Enum.member?/2
Enum.member?(["foo", "bar"], "foo")
# true
With a tuple you will want to convert to to a list first using Tuple.to_list/1
Tuple.to_list({"foo", "bar"})
# ["foo", "bar"]
You can use Enum.member?/2
Enum.member?(["foo", "bar"], "foo")
# true
With a tuple you will want to convert to to a list first using Tuple.to_list/1
Tuple.to_list({"foo", "bar"})
# ["foo", "bar"]