You could do the following using guards:
case x do
{:ok, y} when y in [:first, :third] ->
"do something"
{:ok, :second} ->
"do something else"
end
You could do the following using guards:
case x do
{:ok, y} when y in [:first, :third] ->
"do something"
{:ok, :second} ->
"do something else"
end