concepts.pdsketch.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 (PythonFunctionRef) – the function.
max_examples (int) – the maximum number of examples.
- Returns:
the iterator function.
- Return type: