Skip to main content
Module

x/slotmap/src/lib.ts>Entity

Arena allocator for Deno/TypeScript with persistent unique keys via generational indices
Latest
type alias Entity
import { type Entity } from "https://deno.land/x/slotmap@0.1/src/lib.ts";

An Entity is a key to a SlotMap. It is a generational indice.

A generational indice is a pair of two numbers. One is the ID of the slot in the SlotMap, and the other is a generation that must be equal to the generation stored in the slot for the key to be valid.

definition: [Generation, Idx]