Hello, World! in Erlang
Example for versions
erl 5.7.3
First line notes that this module must be placed in file called prog.erl. Second line exports function main, of arity 0 (takes no parameters). Third line defines the function: all it does is output “Hello, World!”.
-module(prog).
-export([main/0]).
main() -> io:format("Hello, World!~n").
Comments
]]>blog comments powered by Disqus
]]>