predicates
CUE v0.19.0
Surface: per-file @experiment(...) attribute
Enablement
Files at v0.19.0 or later can opt in with @experiment(predicates).
Lifecycle
preview since v0.19.0
Description
Enables the predicate builtins exists, isValid, isConcrete, existsN, and countN for presence, validity, concreteness, and cardinality checks. They replace the historical != _|_ pattern.
Links
- Discussion: https://cuelang.org/discussion/4386