OptionalaxisThe direction of the iteration.
If axis is set to 'fastest', the implementation will automatically choose the fastest axis
for iteration based on the internal data layout of the range.
This can provide performance benefits without requiring the caller to specify the axis,
especially when the optimal axis is not known in advance.
OptionalboundsThe bounds of the iteration.
OptionalcoerceOverrides default coercion behavior per type. When a value cannot be coerced, onError determines the fallback.
OptionalemptyFolds the positions the iteration never visited — the cells that are empty on EVERY side — in a single call, given how many there are.
A sparse fold visits stored members only, which is the whole point of it and is why
SUM(A:A) is not a million calls. But a reducer whose answer DEPENDS on the blanks —
COUNTIF(A:A,"<>10") is 1,048,576 — needs their contribution, and iterating them to get
it gives the cost back. The contribution is the same term repeated, so it is stated in
closed form here and applied once.
This is the caller's to supply because only the caller knows the fold: COUNTIF adds the
count, SUMIF and MAXIFS are unchanged by a blank and pass nothing at all. It is the
open-ufunc analogue of numpy's initial= — numpy hard-codes the identity per reduction
because its set is closed, and this cannot.
Omit it and the unvisited positions contribute nothing, which is the behavior every fold had before this option existed.
OptionalerrorIf true, coercion failure produces #VALUE! rather than silently skipping the value.
OptionalincludeIf true will visit empty cells. This is a potentially huge performance improvement if set to false.
OptionalonWhat to do when the visited value is a FormulaError.
OptionalprocessSkips columns of the range, as processRowSkip skips rows.
OptionalprocessSkips rows of the range: given the next row that would be read, answers the row to read
instead - the same row when it is read, or the next one that is (the previous, when
reverse).
The 0-based row about to be read.
Optionalreverse: boolean
Whether the read runs from the last row back.
The row to read, at or past index.
OptionalreverseIterate in reverse order.
OptionalthisUseful for callback functions that want a this.
OptionaltypeSpecifies the target type for coercion and filtering when getting or iterating values.
Options for a fold — IRange.alignReduce.