def serial
import bend-edit-distance@0.2.2.0/src/Batch.bend as Batchimport Base
146def serial(jobs: List<&2, WeightedJob>) -> List<&2, IndexedResult>:
147 match jobs:
148 case Nil{}:
149 Nil{}
150 case WeightedJob{index, _, job} <> tail:
151 single(index, job) <> serial(tail)