Specialized arrays
Factor handbook » The language » Collections

Prev:Byte arrays
Next:Vectors


The specialized-arrays vocabulary implements fixed-length sequence types for storing machine values in a space-efficient manner without boxing.

A specialized array type needs to be generated for each element type. This is done with parsing words:
SPECIALIZED-ARRAY:

SPECIALIZED-ARRAYS:


This parsing word adds new words to the search path, documented in the next section.
Specialized array words
Passing specialized arrays to C functions
Vector arithmetic with specialized arrays
Specialized array examples

The specialized-vectors vocabulary provides a resizable version of this abstraction.