def write_phase
import bendvy-ecs-core@0.1.0.4/entity_allocator.bend as EntityAllocatorimport Base
import entity_key.bend as K
64def write_phase(allocator:Allocator,+key:K.Key,phase:Phase) -> Allocator:
65 match allocator:
66 case Allocator{next,high,slots,capacity,depth,free,order}:Allocator{next,high,Array.set(Slot,slots,K.index(key),phase_slot(key,phase)),capacity,depth,free,order}