3 ms·
It still doesn't do the same thing as the erlang code as the elixir example is being run at the staged compile-time instead of run-time like elixir's would be t
by OvermindDL1 8y ago
It still doesn't do the same thing as the erlang code as the elixir example is being run at the staged compile-time instead of run-time like elixir's would be though. And a superfluous `ok` atom is being returned from the erlang code when its `io:fwrite/2` already returns it, plus why call fwrite instead of just write out an iolist directly?! o.O
- mmartinson 8y agoYa I get the sense the Erlang example is written a bad faith a little.
- pera 8y agoNot my intention at all, please feel free to rewrite it: I don't know much Erlang and I actually copied that code from Rosetta Code.
- crad 8y agoApples to apples? I don't do Elixir but this is what I think it's doing: io:fwrite(string:join(string:tokens("Hello,How,Are,You,Today",","),".")).