Skip to content

puliyadivinod/erlang-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

erlang-basics

Beginning of learning Erlang basics!

A) Area Module calculates area of rectangle and circle.

How to run?

Goto your Erlang Shell and type below commands, please note make sure your file exists in the same directory from where you opened the Shell:

c(area).
Pid = spawn(fun area:area/0).
Pid ! { rect, 25, 5}.
...
Pid ! { circle, 35 }.
...
Pid ! { triangle, 55, 65, 52}.
...

B) Beer song module sings a song. (Tutorial source: http://trapexit.org/)

How to run?

Goto your Erlang Shell and type below commands, please note make sure your file exists in the same directory from where you opened the Shell:

c(beersong).
beersong:sing().
...here your song printed...

Erlang Learning Sources

http://learnyousomeerlang.com/introduction
http://erldocs.com/
http://schemecookbook.org/Erlang/
http://trapexit.org/
http://www.erlang.se/doc/programming_rules.shtml

About

Beginning of learning Erlang basics!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages