Via Composer
$ composer require getwarp/collection
use Warp\Collection\Collection;
use Warp\Collection\Map;
$collection = Collection::new([0, 1, 2, 3]);
\assert(6 === $collection->sum());
$map = Map::new([
'key' => 'value',
'foo' => 'bar',
]);
\assert(true === $map->has('foo'));
\assert(false === $map->has('baz'));
Please see CHANGELOG for more information on what has changed recently.
Report issues and send pull requests in the main Warp repository. Please see contributing guide and code of conduct for details.
The MIT License (MIT). Please see license file for more information.