3 ms·
Besides arrays existing in Erlang, there's a nice elixir library if you need it: https://www.erlang.org/doc/apps/stdlib/array.html https://www.erlang.org/doc/a
by gregors 2y ago
Besides arrays existing in Erlang, there's a nice elixir library if you need it:
https://www.erlang.org/doc/apps/stdlib/array.html https://www.erlang.org/doc/apps/stdlib/array.html
https://hexdocs.pm/arrays/Arrays.html https://hexdocs.pm/arrays/Arrays.html
Also, if it's read heavy, you can use use tuples for O(1) access.
Besides all that, the community is extremely helpful, if you have questions check out the forum, for example on this very topic there's quite a bit of helpful discussion
https://elixirforum.com/t/elixir-array-like-data-structure/26195 https://elixirforum.com/t/elixir-array-like-data-structure/2...