def clear_state

bendvy-ecs-core@0.1.0.3 · column.bend:531

import bendvy-ecs-core@0.1.0.3/column.bend as Column
import Base
import lifecycle.bend as L

531# Structural cleanup releases payload and associated lifecycle entry. Projection
532# and journal swaps remain metadata-neutral; despawn must use this explicit seam.
533def clear_state(~S:Data,~C:Type,+id:U32,state:State<S,C>) -> Column<S,C>:
534  match state:
535    case State{values,stamps,capacity,current,owner,remaining,past}: Prepared{Owned{State{values,L.clear(stamps,id),capacity,current,owner,remaining,past}}}

Uses (5)

Used by (1)