Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustkas/erlang_master_class
Notes related to master class material
https://github.com/rustkas/erlang_master_class
erlang masterclass notes
Last synced: 19 days ago
JSON representation
Notes related to master class material
- Host: GitHub
- URL: https://github.com/rustkas/erlang_master_class
- Owner: rustkas
- Created: 2019-09-27T11:54:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T11:59:59.000Z (over 5 years ago)
- Last Synced: 2024-11-27T21:22:36.641Z (3 months ago)
- Topics: erlang, masterclass, notes
- Homepage: https://www.kent.ac.uk/elearning/themes/masterclasses.html
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Erlang master class](https://www.kent.ac.uk/elearning/themes/masterclasses.html) notes
Lifehacks of practical usage source code examples.
## Master class 2
`demo2.erl`
```
% testing source code by any input (without hanging)
% pay attention to usage of function f(). It remove variable `Replay` from process memoryPid1 = spawn(demo2, area, []).
Pid1 !{self(), {square, 20}}, f(Reply), receive Reply -> Reply end.
Pid1 !{self(), {square, 30}}, f(Reply), receive Reply -> Reply end.
Pid1 !{self(), {square, 40}}, f(Reply), receive Reply -> Reply end.
Pid1 !{self(), {square, 50}}, f(Reply), receive Reply -> Reply end.
```