enumerated
Factor handbook » The language » Collections » Enumerated sequences

Next:<enumerated> ( seq -- enumerated )


Vocabulary
assocs

Class description
An associative structure which wraps a sequence and maps integers to the corresponding elements of the sequence.

Enumerated sequences are mutable; note that deleting a key calls remove-nth!, which results in all subsequent elements being shifted down.

Definition


Methods