P::twist
,P::twistN
P::flip
now returns a curried function.- Function parameters with unambiguous types now have type declarations.
- Placeholder arguments
P::dec
,P::inc
0.7.0 - 2017-03-27
- PHP 7.1 test coverage
P::first
andP::last
now returnnull
instead offalse
if the collection is empty.P::indexOf
now returnsnull
instead offalse
if the item is not found.P::stringIndexOf
andP::stringLastIndexOf
now returnnull
instead offalse
if the substring is not found.P::isEmpty
now expects that the collection is\Countable
(or implementsisEmpty
method or is an array).- Some functions now enforce their parameter types more strictly.
- Placeholder arguments
P::dec
,P::inc
- PHP 5.6 support
0.6.1 - 2016-05-19
- Allow empty delimiter for
P::explode
.
0.6.0 - 2016-05-19
P::fromPairs
,P::toPairs
0.5.0 - 2016-03-31
- Added missing
key
andcollection
arguments inP::each
.
P::*Indexed
0.4.0 - 2016-01-14
- PHP 7.0 test coverage
- Inner functions of all basic collection functions once again receive
value
,key
andcollection
as arguments.
P::*Indexed
0.3.0 - 2015-04-29
P::*Indexed
, separate multi parameter versions of the basic collection functionsP::evolve
- Only
value
is passed to the inner function of the basic collection functions.
0.2.0 - 2015-04-09
P::apply
,P::flatMap
,P::invoker
and 7 other functions
- Expanded placeholder support
- Support negative indexes in string and collection manipulation
0.1.0 - 2015-03-23
P::compose
,P::curry
,P::pipe
and various other functions, 93 total- Basic placeholder argument support
- PHP 5.6 and partial HHVM support