Erlang - get


Advertisements

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"}]
erlang_bifs.htm
Advertisements