concepts.dm.crow.executors.generator_executor.wrap_singletime_function_to_iterator#
- wrap_singletime_function_to_iterator(function, max_examples)[source]#
Wrap a function that returns a single value to an iterator function.
- Parameters:
function (CrowPythonFunctionRef) – the function.
max_examples (int) – the maximum number of examples.
- Returns:
the iterator function.
- Return type: