Sorted.sort: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/sorted.bend as Sorted Lines 34-42 of ezx@1.11.0.0/src/ez/sorted.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/sorted.bend&start_line=34&end_line=42 import Base # the strings in order. Base's List.sort takes its comparison as an erased # argument and is fuelled besides, so nothing downstream of it can be proved; # an insertion shrinks its list every step and stays inside the check. def sort(ss: List<&2, String>) -> List<&2, String>: match ss: case []: [] case +h <> t: sort.ins(h, sort(t)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/sorted.bend&name=sort.ins