def once.put

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

import ezx@1.11.0.0/src/doctor/plan.bend as Plan
import Base

390# a head kept when the rest does not hold it again
391def once.put(dup: Bool, item: String, rest: List<&2, String>) -> List<&2, String>:
392  match dup:
393    case True{}:
394      rest
395    case False{}:
396      item <> rest

Uses (3)

Used by (1)