Skip to content

Instantly share code, notes, and snippets.

@fernyb
Last active March 20, 2022 19:10
Show Gist options
  • Save fernyb/80d39df8c913f1e1d8afc6c4ec0910a8 to your computer and use it in GitHub Desktop.
Save fernyb/80d39df8c913f1e1d8afc6c4ec0910a8 to your computer and use it in GitHub Desktop.
Erlang Hello World Example
%hello world example
-module(helloworld).
-export([start/0]).
start() ->
{ok, "Hello World"}.
% $ erl
% Erlang/OTP 21 [erts-10.3.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
%
% Eshell V10.3.1 (abort with ^G)
% 1> c(helloworld).
% {ok,helloworld}
% 2> helloworld:start().
% {ok,"Hello World"}
% 3>
@CaptainMirage
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment