def originals

bendvy-ecs-core@0.1.0.4 · bundle_batch.bend:86

import bendvy-ecs-core@0.1.0.4/bundle_batch.bend as BundleBatch
import Base

86def originals(~S:Data,~P:Type,prepared:List<Prepared<S,P>>) -> List<P>:
87  match prepared:
88    case []: []
89    case ReservationReceipt{target} <> tail: originals(~S,~P,tail)
90    case Prepared{target,payload,position} <> tail: payload <> originals(~S,~P,tail)

Uses (2)

Used by (2)