Verifies that all elements of the array or object are valid, i.e. they are
not of type JsonAccessError. The function terminates on the first
error found.
NOTE: this works best with a constant tuple or object defined as const,
because then, if the test succeeds, no element of the tuple or object is a
Maybe anymore:
constall = { a:Maybe<X> = ... b: Maybe<Y> = ... } asconst; if (!allValid(all)) return; constrealA: X = all.a constrealB: Y = all.b;
Verifies that all elements of the array or object are valid, i.e. they are not of type JsonAccessError. The function terminates on the first error found.
NOTE: this works best with a constant tuple or object defined
as const, because then, if the test succeeds, no element of the tuple or object is aMaybeanymore: