Last active
March 20, 2022 19:10
-
-
Save fernyb/80d39df8c913f1e1d8afc6c4ec0910a8 to your computer and use it in GitHub Desktop.
Erlang Hello World Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice