def entities_head
import bendvy-ecs-core@0.1.0.4/restore_raw.bend as RestoreRawimport 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}