An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# f [![Build Status](https://travis-ci.org/zweifisch/f.png?branch=master)](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
```