nozavroni / csvelte

🕺🏻 CSV and Tabular Data library for PHP
http://phpcsv.com/
Other
6 stars 0 forks source link

Functions for common collection features #159

Closed nozavroni closed 6 years ago

nozavroni commented 7 years ago

Maybe write some namespaced functions for the most common collection-related features. For instance:


$coll = filter(['foo', 'bar', 'baz'], [$filter1, $filter2,  $etc]);
$coll2 = map(['foo', 'bar', 'baz'], [$cb1, $cb2,  $cb3]);
$coll3 = search(['foo', 'bar', 'baz'], new Criteria(...));
$coll4 = validate(['foo', 'bar', 'baz'], new Validation(...));
nozavroni commented 6 years ago

No.