Generator (computer programming): Difference between revisions

Content deleted Content added
PHP: type hint
Line 272:
 
<syntaxhighlight lang="php">
function fibonacci(): {iterator
{
$last = 0;
$current = 1;