for_each class
Last update: 18.06.2026Namespace: Ans.DataProcessing.operators.utility
Summary
Allows to write a loop over a chunk of operators.
available inputs: iterable (object), iterable_values (object) (optional), pin_index (Int32) (optional), forward1 (object), forward2 (object)
available outputs: empty (object), output1 (object), output2 (object)
Example
op = for_each()
op = for_each(iterable=my_iterable,iterable_values=my_iterable_values,pin_index=my_pin_index,forward1=my_forward1,forward2=my_forward2)
Class Information
| Property | Value |
|---|---|
| Namespace | Ans.DataProcessing.operators.utility |
| Assembly | Ans_Dpf_Native_dll_cs |
| Base Class | Ans.DataProcessing.internal_objects.BaseOperator |
Inputs
iterable
Either the result of the make_iterable_info operator, or the operator that must be incremented.
Type: LinkableInput
iterable_values
Type: LinkableInput
pin_index
Type: LinkableInput
forward1
Type: LinkableInput
forward2
Type: LinkableInput
Outputs
empty
Type: LinkableOutput
output1
Type: LinkableOutput
output2
Type: LinkableOutput
Constructors
Constructor
for_each()
Constructor
for_each(iterable, iterable_values, pin_index, forward1, forward2, config)
Parameters:
iterable(object)iterable_values(object)pin_index(object)forward1(object)forward2(object)config(OperatorConfig)
Constructor
for_each(config)
Parameters:
config(OperatorConfig)
Methods
Properties
inputs
Type: InputSpec
# Get or set the property
value = obj.inputs
obj.inputs = new_value
outputs
Type: OutputSpec
# Get or set the property
value = obj.outputs
obj.outputs = new_value
defaultConfig
Type: Config
# Get the property (read-only)
value = obj.defaultConfig