These are my notes, scratches, and exercises while going through the Erlang section of Seven Languages in Seven Weeks.
I just used homebrew to install erlang:
brew install erlang
A file that defines a module can be compiled and run from the console.
For example, the file day1/basic.erl can be used as follows after entering the console with the erl
command:
% compile the module
c(basic).
% => {ok,basic}
% call the mirror function in the basic module
basic:mirror(hello).
% => hello
Learn more Erlang:
- Seven Languages in Seven Weeks (of course!)
- Erlang in Practice
- Programming Erlang
- Learn You Some Erlang
- Erlang Programming
- Erlang and OTP in Action
The code taken frome the book comes with the following copyright/disclaimer:
Copyrights apply to this source code. You may use the source code in your own projects, however the source code may not be used to create training material, courses, books, articles, and the like. We make no guarantees that this source code is fit for any purpose.
Anything else in this repository is licensed by me under the MIT license. See LICENSE
for more information.