Alignment.update_best: def of bend-edit-distance@0.2.2.0 Import: import bend-edit-distance@0.2.2.0/src/Alignment.bend as Alignment Lines 14-21 of bend-edit-distance@0.2.2.0/src/Alignment.bend: https://jend.leeeet.dev/read.txt?path=bend-edit-distance@0.2.2.0/src/Alignment.bend&start_line=14&end_line=21 import Base def update_best(best: Best, score: U32, location: Location, comparison: Cmp) -> Best: match best comparison: case Best{_, _} LT{}: Best{score, [location]} case Best{old, locations} EQ{}: Best{old, location <> locations} case _ GT{}: best Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/src/Alignment.bend&name=Best https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/src/Alignment.bend&name=Location