Skip to content

bolknote/itertools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itertools

"Fair" (based on PHP 5.5 generators) implementation of the Python itertools module.

All functions are implemented; PHP 8.1 or higher is required to run.

Usage example:

require_once 'src/Itertools/Itertools.php';
use Itertools\Itertools as it;

foreach (it::islice(it::cycle('ABC'), 10) as $element) {
    echo $element;
}

Compared to the itertools package, this implementation includes standard Python functions such as iter, enumerate and range.

About

PHP generator Itertools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages