Array accumulators
Reference documentation for Expressif accumulators in the array scope.
| Name | Overview |
|---|---|
any | Returns true when at least one accumulated boolean value is true. |
closest | Returns the first non-null input value with the smallest absolute distance to the target. |
common-prefix | Returns the longest prefix shared by all accumulated strings. |
common-suffix | Returns the longest suffix shared by all accumulated strings. |
count | Counts the number of accumulated items, including null values. |
every | Returns true only when every accumulated boolean value is true. |
first | Stores the first accumulated item and ignores all subsequent items. |
last | Stores the most recently accumulated item. |
max | Tracks the greatest numeric value found during accumulation. |
min | Tracks the smallest numeric value found during accumulation. |
only | Forwards only items satisfying the predicate to the wrapped accumulator. |
reduce | Combines array elements in source order by repeatedly evaluating an expression against the accumulated value and current element. |
sum | Computes the sum of all accumulated numeric values. |