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: 4 months 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T11:59:59.000Z (almost 6 years ago)
- Last Synced: 2025-01-26T10:45:00.978Z (5 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.
```