Tuples vs lists

Fernando Rodriguez fernando@REDACTED
Wed Feb 1 12:41:36 CET 2006


Hi,

I'm going through the Erlang tutorial,and I don't understand very well the
difference between tuples and lists. For example, form the tutorial:

o represent the temperature of various cities of the world we could write

{moscow, {c, -10}}
{cape_town, {f, 70}}
{paris, {f, 28}}
    

Why not use [moscow, [c, -10]] instead? 

Thanks! :-)

BTW, www.erlang.org seems to be dead since yesterday... :-?




More information about the erlang-questions mailing list