def collection.or.keep

yaml-for-bend@0.1.1.0 · core.bend:170

import yaml-for-bend@0.1.1.0/core.bend as Core
import Base
import yaml-for-bend@0.1.1.0/value.bend as V

170def collection.or.keep(hit: Bool, +tag: String, v: V.Yaml) -> V.Yaml:
171  match hit:
172    case True{}:
173      v
174    case False{}:
175      V.Tagged{tag, v}

Uses (3)

Used by (1)