def entities_head

bendvy-ecs-core@0.1.0.4 · restore_raw.bend:61

import bendvy-ecs-core@0.1.0.4/restore_raw.bend as RestoreRaw
import Base
import bendvy-ecs-core@0.1.0.4/snapshot_data.bend as Snapshot

61def entities_head(next:Unit -> Decoded<List<&2,Snapshot.Entity>>,result:Decoded<Snapshot.Entity>) -> Decoded<List<&2,Snapshot.Entity>>:
62  match result:
63    case Value{head}:entities_tail(head,next(Unit{}))
64    case Failed{error}:Failed{error}

Uses (5)

Used by (1)