Download the PHP package nicofff/lazy-iter without Composer
On this page you can find all versions of the php package nicofff/lazy-iter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nicofff/lazy-iter
More information about nicofff/lazy-iter
Files in nicofff/lazy-iter
Download nicofff/lazy-iter
More information about nicofff/lazy-iter
Files in nicofff/lazy-iter
Vendor nicofff
Package lazy-iter
Short Description Lazy array function chains inspired in Rust
License MIT
Package lazy-iter
Short Description Lazy array function chains inspired in Rust
License MIT
Please rate this library. Is it a good library?
Informations about the package lazy-iter
Lazy Iter
Lazy array function chains inspired by Rust
Design goals
- Be lazy (as in Lazily evaluated)
- Have a similar interface to Rust's Iterator
- Leverage static code analyzers to validate type correctness
Install
composer require nicofff/lazy-iter
PHP 7.4 required
Examples
Project status
Methods implemented (based on Rust's Iterator Trait)
- all
- any
- chain
- collect
- count
- cycle
- filter
- fold
- for_each
- last
- map
- nth
- skip
- sum
- take
- take_while
Type Enforcement
Currently using PHPStan for type validation. Check type_tests
for a list of things it caches for each method
Example
Raises:
Accepting contributions to support Phan and Psalm
All versions of lazy-iter with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package nicofff/lazy-iter contains the following files
Loading the files please wait ....