def replace_next

bendvy-ecs-core@0.1.0.4 · ordinary_app_schedules.bend:49

import bendvy-ecs-core@0.1.0.4/ordinary_app_schedules.bend as OrdinaryAppSchedules
import Base
import bendvy-ecs-core@0.1.0.4/schedule_provision.bend as SP

49def replace_next(~S:Data,same:Bool,label:String,plan:SP.Plan<S>,old:Named<S>,rest:List<&2,Named<S>>,next:List<&2,Named<S>>) -> List<&2,Named<S>>:
50  match same:
51    case True{}:Named{label,plan} <> rest
52    case False{}:old <> next

Uses (5)

Used by (1)