HF RL Explorer

Recursive Generators in PHP - Fibonacci Sequence

Recursive Generators in PHP - Fibonacci Sequence: a task in Terminal-Lego-15k (Harbor dataset). PHP 5.5+ introduced generators, which provide a simple way to implement iterators. Generators use the yield keyword to produce values one at a time, which is memory-efficient for large sequences.

The task

PHP 5.5+ introduced generators, which provide a simple way to implement iterators. Generators use the `yield` keyword to produce values one at a time, which is memory-efficient for large sequences.

Part of PrimeIntellect/Terminal-Lego-15k.