https://github.com/zweifisch/f
functional building blocks for php
https://github.com/zweifisch/f
Last synced: over 1 year ago
JSON representation
functional building blocks for php
- Host: GitHub
- URL: https://github.com/zweifisch/f
- Owner: zweifisch
- Created: 2013-05-16T13:50:48.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-19T12:03:49.000Z (about 13 years ago)
- Last Synced: 2025-01-27T22:55:09.039Z (over 1 year ago)
- Language: PHP
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# f [](https://travis-ci.org/zweifisch/f)
functional building blocks for php
## synopsis
```php
$f = \f\F::getInstance();
$f->map($f->comp($f->even,$f->inc), [1,2]);
```
## available functions
* add
* apply
* comp
* complement
* concat
* dec
* div
* even
* every
* filter
* first
* get
* inc
* keys
* last
* map
* mul
* odd
* partial
* reduce
* rem
* some
* sub
* vals
## tests
```sh
composer install --dev
vendor/bin/phpunit -c tests
```
## benchmarks
```sh
php benchmark/run.php
```