In this guide, we will discuss Erlang get. The method returns the process dictionary as a list.
Syntax
get()
Parameters
- None
Return Value
The method returns the process dictionary as a list.
For example
-module(helloworld). -export([start/0]). start() -> put(1,"One"), put(2,"Two"), io:fwrite("~p~n",[get()]).
Output
When we run the above program we will get the following result.
[{2,"Two"},{1,"One"}]
Next Topic : Click Here
Pingback: Erlang - float | Adglob Infosystem Pvt Ltd
Pingback: Erlang - BIFS | Adglob Infosystem Pvt Ltd