Download the PHP package kdaviesnz/list without Composer
On this page you can find all versions of the php package kdaviesnz/list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kdaviesnz/list
More information about kdaviesnz/list
Files in kdaviesnz/list
Download kdaviesnz/list
More information about kdaviesnz/list
Files in kdaviesnz/list
Vendor kdaviesnz
Package list
Short Description Enables functional style syntax eg $list->filter($cb)->map($cb2)
License MIT
Homepage http://github/kdaviesnz
Package list
Short Description Enables functional style syntax eg $list->filter($cb)->map($cb2)
License MIT
Homepage http://github/kdaviesnz
Please rate this library. Is it a good library?
Informations about the package list
Problem
You have an array and you need to remove anything that is not a number and double everything else.
Solution
$a = kdaviesnz/utilities/lists([null, "apple", 1,2,3]);
$result = $a->filter(function($item) { return is_numeric($item) } )->map(function($item) { return $item * 2 } )()
$a_parsed = $result()
See tests/listsTest.php
lists
All versions of list with dependencies
PHP Build Version
Package Version
The package kdaviesnz/list contains the following files
Loading the files please wait ....