Batch.extra_work: def of bend-edit-distance@0.2.2.0 Import: import bend-edit-distance@0.2.2.0/src/Batch.bend as Batch Lines 29-41 of bend-edit-distance@0.2.2.0/src/Batch.bend: https://jend.leeeet.dev/read.txt?path=bend-edit-distance@0.2.2.0/src/Batch.bend&start_line=29&end_line=41 import Base import bend-edit-distance@0.2.2.0/EdlibTypes.bend as E def extra_work(mode: E.Mode, task: E.Task, +q: F32, +t: F32, +blocks: F32, pairs: F32) -> F32: match mode task: case _ E.Distance{}: 0.0 case E.HW{} E.Path{}: (blocks * t * t + q * t * pairs : F32) case E.HW{} _: (blocks * t * t : F32) case _ E.Path{}: (q * t * pairs : F32) case _ _: 0.0 Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.mul https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/EdlibTypes.bend&name=Mode https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/EdlibTypes.bend&name=Task