Description
N1QL has two quantifiers, ANY and EVERY. We need a third, ANY AND EVERY.
ANY returns TRUE if the input is non-empty here is at least one match.
EVERY returns TRUE if (1) the input is empty, or (2) the input is non-empty and every element is a match.
We need a third quantifier, ANY AND EVERY, that returns TRUE only if the input is non-empty and every element is a match. In addition to conciseness, an important benefit is that this quantifier is usable with array indexing. Currently, ANY is usable with array indexing, but EVERY is not, because it is TRUE on empty input.