We can check how the code was developed by using quote do
quote do
if Enum.any?(x, & &1 == "A"), do: 3, else: 2
|> IO.inspect(label: "returning a")
end
|> Macro.to_string()
|> IO.puts()
That results to
if(Enum.any?(x, &(&1 == "A"))) do
3
else
2 |> IO.inspect(label: "returning a")
end
Which is always true in this case. So, it won’t enter into else






















