4 ms·
many functional languages (if not all) do not have arrays (intended as a contiguous areas of memory containing indexable elements of fixed size) they are usuall
by peoplefromibiza 2y ago
many functional languages (if not all) do not have arrays (intended as a contiguous areas of memory containing indexable elements of fixed size) they are usually left as an implementation as libraries (i.e. Haskell's Data.Array)
There are also easy workarounds to that (including NIFs), I personally never needed arrays in Elixir
- derekkraan 2y agoYeah, just (learn how to) use lists and you'll be fine. Of course if your goal is to re-implement sorting algorithms that were designed for mutable memory, you will be disappointed. This isn't a deal-breaker. If you want a platform language, use that. But for web, you'd be hard-pressed to find something better suited than Elixir.
- gregors 2y agoI've only ran into a single instance where I needed array-like access and since it was a read only type of thing tuples worked perfectly.