def once.pick

ezx@1.11.0.0 · src/pub/plan.bend:696

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

696# a string kept unless it was seen before
697def once.pick(dup: Bool, +word: String, rest: List<&2, String>) -> List<&2, String>:
698  match dup:
699    case True{}:
700      rest
701    case False{}:
702      word <> rest

Uses (3)

Used by (1)