def none_present

bend-schema-lib@0.4.1.0 · core.bend:246

import bend-schema-lib@0.4.1.0/core.bend as Core
import Base

246# None of the keys of a variant chain is in the object r.
247def none_present(s: Schema, +r: Raw) -> Bool:
248  match s:
249    case SVariant{n, vs, rest}:
250      Bool.and(is_missing(lookup(n, r)), none_present(rest, r))
251    case _:
252      True{}

Uses (6)

Used by (1)