News for hackers. Stuff that matters.
Re:Elixir Gotchas by out_of_protocol on Wednesday June 26, 2024 @08:01AM (#40798965)
There are arrays - https://www.erlang.org/doc/apps/stdlib/array.html

Just not used across the language

Re:Elixir Gotchas by mikhailfranco on Wednesday June 26, 2024 @11:31AM (#40801193)
They are trees, so not O(1) access or update, more like O(logn), with some memory fragmentation for every update, insertion or deletion.

Tuples and binaries give O(1) read access, so depending on your use case, they may be better.

Also look at zippers, finger trees and ropes for more dynamic use, especially local operations (cursors).