selectByIndex
suspend fun selectByIndex(selectIndex: suspend (List<Output>) -> Int): ParallelNodeExecutionResult<Output>(source)
Selects a result from a list of outputs based on a provided selection function.
Return
The NodeExecutionResult containing the output and context at the selected index.
Parameters
selectIndex
A lambda function that takes a list of outputs and returns the index of the desired output.
Throws
if the index returned by the selectIndex function is out of bounds.