def once

ezx@1.11.0.0 · src/doctor/plan.bend:398

import ezx@1.11.0.0/src/doctor/plan.bend as Plan
import 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))

Uses (4)

Used by (1)