def once
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
398# every string of a list once, each where it last stands
399def once(ss: List<&2, String>) -> List<&2, String>:
400 match ss:
401 case []:
402 []
403 case +h <> +t:
404 once.put(has(t, h), h, once(t))