NSPL icon indicating copy to clipboard operation
NSPL copied to clipboard

Non-Standard PHP Library - functional primitives toolbox and more

Results 5 NSPL issues
Sort by recently updated
recently updated
newest added

Had to update PHPUnit so it works on PHP 7.4+.

Hello I notice that there are no `head` and `tail` equivalents for functional programming. I did notice that there is a `first` and a `drop($sequence, 1)`, which are equivalent in...

This adds support for `partitionBy`, to allow partitioning into more than two partitions. This can be useful if you have a list of things that you want to group by...

Zip currently requires at least two arguments. `zip` can be seen as "create tuples consisting of an element of every argument". So, if one argument is passed, `zip` can still...

This adds `head` (alias of `first`), `tail` (alias of `drop($sequence, 1)`) and `init`. I wasn't sure if I should add tests for functions that are just aliases. I can add...