Arrays vs tuples / lists

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Arrays vs tuples / lists

Thomas Lange
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