def sort.ins

ezx@1.11.0.0 · src/ez/sorted.bend:26

import ezx@1.11.0.0/src/ez/sorted.bend as Sorted
import 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))

Uses (4)

Used by (1)