@lang:all
Whether every element satisfies the predicate.
On-chain (@lang:all!): Predicates return bool and stop at the first decisive result. Supports typed dynamic arrays and word-specialized predicates.
Returns: bool
Syntax
Section titled “Syntax”@lang:all(arr fn)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
arr | array | Source array |
fn | helper | Predicate helper returning bool |
See Also
Section titled “See Also”On-chain face (@all!)
Section titled “On-chain face (@all!)”Return true if every element satisfies a named boolean callback, stopping at the first failure. Empty arrays return true. Callbacks support composed helpers and ABI calls over typed single-word or multiword elements.
A predicate that compares one call over the element with a value, such as a balance against a minimum, costs one call per element. The value may be a call of its own: it is read once, not once per element.