Sometime I wonder why Elixir tries too hard to have Ruby syntax.
Erlang:
loop_through([H|T]) ->
io:format('~p~n', [H]),
loop_through(T);
loop_through([]) -> ok.
It seems convenient to use ';' to separate multiple definitions of a function compared to using 'end' in Elixir(function definition continues in the next block)Elixir:
def loop_through([h|t]) do
IO.inspect h
loop_through t
enddef loop_through([]) do
:ok
end