[erlang-questions] Cost of Copy

Henning Diedrich hd2010@REDACTED
Sun May 30 02:26:27 CEST 2010


Hi James,

can you clarify this for me, what you mean by "shared" ... I think I 
understood the rest of your post alright, thanks!

Henning

> X = [57|List]
> This creates a single cons (2 cells). The first element is 57. The second is
> a pointer to List. So even though you've got two lists (X and List), all of
> the data is shared except for the first cons of X.
>
>   



More information about the erlang-questions mailing list