by calo_star · 3y ago · 0 comments
if condition do
IO.puts "true"
:yes
else
IO.puts "false"
:no
end
is just a call to the *Kernel.if/2* macro: if(true, do: (IO.puts("true"); :yes), else: (IO.puts("false"); :no))
I was joyous when I realized I could pipe stuff into a case statement.No comments yet.