QuickBEAM.VM.Heap.Arrays (QuickBEAM v0.10.9)

Copy Markdown View Source

Array storage operations for the JS object heap.

Summary

Functions

Returns whether a value uses a supported heap array representation.

Writes an array element, padding missing indexes with :undefined when needed.

Converts heap array storage to a plain Elixir list.

Functions

array?(list)

Returns whether a value uses a supported heap array representation.

get(list, idx)

length(list)

put(list, idx, val)

Writes an array element, padding missing indexes with :undefined when needed.

to_list(list)

Converts heap array storage to a plain Elixir list.