Mais conteúdo relacionado
Erlang
- 2. What is it?
created by Joe Armstrong in 1986 at Ericcsson Telecom
based on Prolog
functional language
dynamicly typed
- 4. Where is it used?
RabbitMQ (France telecom)
CouchDB
Facebook Chat
GitHub (egitd)
SimpleDB (AWS)
- 10. Matching
Company = {company,
{name, "Applicake"},
{address, "Krakow"}
}.
{company, {name, Name,
{address, Address}}} = Company.
Name %=> "Applicake"
Address %=> "Krakow"
- 17. Control structures
case...
case Animal of
"dog" -> underdoga;
"cat" -> thundercat
_ -> something_else
end.
- 21. Processes
fuction_name() ->
receive
"message" ->
io::format("Hi!"),
function_name();
_ ->
io::format("Whatever..."),
function_name()
end.