def invalid_tail
bendvy-ecs-core@0.1.0.3 · bundle_construction.bend:19
import bendvy-ecs-core@0.1.0.3/bundle_construction.bend as BundleConstruction
import Base
import bundle_pack.bend as B
19def invalid_tail(~Ctx:Type,~HR:Type,~HC:Type,~TR:Type,~TC:Type,~Error:Data,head:HR,error:Error,tail:Staged<Ctx,TR,TC,Error>) -> Staged<Ctx,B.Pack<HR,TR>,B.Pack<HC,TC>,Error>:
20 match tail:
21 case Valid{ctx,cooked,undo,positions}: Failed{ctx,B.Pack{head,undo(cooked)},Some{error} <> positions}
22 case Failed{ctx,raw,positions}: Failed{ctx,B.Pack{head,raw},Some{error} <> positions}