def sort.ins
import ezx@1.11.0.0/src/ez/sorted.bend as Sortedimport Base
26# one string dropped into a sorted list
27def sort.ins(+item: String, ss: List<&2, String>) -> List<&2, String>:
28 match ss:
29 case []:
30 [item]
31 case +h <> +t:
32 sort.ins.put(String.is_le(item, h), item, h, t, sort.ins(item, t))