[erlang-questions] What's the difference between tuple and list ?

raocheng rc.china@REDACTED
Tue Sep 25 12:53:20 CEST 2007


The Pragmatic Programming Erlang says:
1) Suppose you want to group a fixed number of items into a single
entity.For this you'd use a tuple.
2) We use lists to store variable numbers of things.

However, we know that variables in Erlang are in essence invariable. So what
is the difference between tuple and list ?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20070925/7bb0d2fa/attachment.htm>


More information about the erlang-questions mailing list