EdlibTypes.within_threshold: def of bend-edit-distance@0.2.2.0 Import: import bend-edit-distance@0.2.2.0/EdlibTypes.bend as EdlibTypes Lines 205-210 of bend-edit-distance@0.2.2.0/EdlibTypes.bend: https://jend.leeeet.dev/read.txt?path=bend-edit-distance@0.2.2.0/EdlibTypes.bend&start_line=205&end_line=210 import Base def within_threshold(threshold: Threshold, distance: Nat) -> Bool: match threshold: case Unlimited{}: True{} case MaxDistance{maximum}: Nat.is_le(distance, maximum) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=bend-edit-distance@0.2.2.0/EdlibTypes.bend&name=Threshold