in-ram lists

Vlad Dumitrescu XX (LN/EAB) vlad.xx.dumitrescu@REDACTED
Fri Mar 24 13:32:07 CET 2006


Hi,

> Q1 = queue:new().
> queue:in("item1", Q1).
> queue:in("item2", Q1).

Use instead:

Q1 = queue:new().
Q2 = queue:in("item1", Q1).
Q3 = queue:in("item2", Q2).

Since variables can't be assigned to, the functions return the new queue
(with the appended value).

Regards,
Vlad



More information about the erlang-questions mailing list