Erlang arrays - applications/use cases?

I recently discovered that erlang has arrays, but the documentation is rather minimalistic and doesn’t make it clear where it makes sense to use them. Could someone point to interesting use cases?

5 Likes

Arrays can be used instead of maps when the keys are non-negative integers. The advantage is that an array uses less memory than a map because the keys are not explicitly stored.

Wings 3D uses several arrays in the representation of 3D models:

5 Likes