def index
import bendvy-ecs-core@0.1.0.3/entity_key.bend as EntityKeyimport Base
9# Return only the slot index, discarding generation for this observation.
10# Equal indices do not establish equal entity identities or valid handles.
11def index(key:Key) -> U32:
12 match key:
13 case EntityKey{index,_}:index