Download the PHP package martinezdelariva/functional without Composer
On this page you can find all versions of the php package martinezdelariva/functional. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download martinezdelariva/functional
More information about martinezdelariva/functional
Files in martinezdelariva/functional
Download martinezdelariva/functional
More information about martinezdelariva/functional
Files in martinezdelariva/functional
Vendor martinezdelariva
Package functional
Short Description Syntax enhancement operators of functional programming
License MIT
Package functional
Short Description Syntax enhancement operators of functional programming
License MIT
Please rate this library. Is it a good library?
Informations about the package functional
Functional
Syntax enhancement operators of functional programming:
- Curry
- Pipe
- Pattern Match
- Fold
At the moment there are plans to include curry and pipe as PHP functions. Meanwhile you can use this library for fun!
Notes:
curry
doesn't know if a function with optional params won't be provided. So,curry
only runs the function curried when all params are given.- currying vs partial function application Wikipedia
Installation
Install it using Composer
composer require martinezdelariva/functional
Usage
Importing as a single function:
Importing namespace:
Functions
curry
curry_left
curry_left
is an alias of curry
.
curry_right
match
Pipe
Fold
All versions of functional with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package martinezdelariva/functional contains the following files
Loading the files please wait ....