Returns a fluent iterator that uses $function to generate elements
$function takes one argument which is the current position of the iterator.
public static fromFunction ( $generator ) : |
||
$generator | ||
return |