def checked_slot
import bendvy-ecs-core@0.1.0.3/entity_allocator.bend as EntityAllocatorimport Base
import entity_key.bend as K
41def checked_slot(+key:K.Key,mode:U32,+next:U32,+high:U32,+capacity:U32,+depth:Nat,+free:List<&2,U32>,+order:List<&2,K.Key>,observed:Array<Slot> & Slot) -> Allocator & Bool:
42 match observed:
43 case (slots,slot):(Allocator{next,high,slots,capacity,depth,free,order},slot_valid(key,mode,slot))