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:
Returns:

the iterator function.

Return type:

Callable[[…], Iterator[Any]]