Skip to content

FoldInterpretableOptions

FoldInterpretableOptions configures a comprehension fold interpretable.

accuInit: InterpretableV2

accuInit evaluates to the initial accumulator value.


accuVar: string

accuVar is the accumulator variable name.


condition: InterpretableV2

condition evaluates the loop condition.


optional exhaustive?: boolean

exhaustive ensures every loop condition and step is evaluated.


id: number

id is the expression id associated with the fold node.


optional interruptable?: boolean

interruptable checks the execution frame for cancellation after each loop step.


iterRange: InterpretableV2

iterRange evaluates to the input collection.


iterVar: string

iterVar is the first iteration variable name.


optional iterVar2?: string

iterVar2 is the second iteration variable name, if present.


result: InterpretableV2

result evaluates the final fold result.


step: InterpretableV2

step evaluates the next accumulator value.