def once.put
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport 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