Arrays vs tuples / lists

Thomas Johnsson <>
Mon May 17 15:59:03 CEST 2004


Hi,
Erlang does not have array values as such,
but could big tuples be used instead to get 'direct access' via
element(N, Tuple) ?
Or does list_to_tuple( <long list> ) give you something basically
the same as a list in the implementation, so that element(10000,T)
is much more expensive than element(1,T) ?
-- Thomas Johnsson




More information about the erlang-questions mailing list