Download the PHP package grrr-amsterdam/garp-functional without Composer
On this page you can find all versions of the php package grrr-amsterdam/garp-functional. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download grrr-amsterdam/garp-functional
More information about grrr-amsterdam/garp-functional
Files in grrr-amsterdam/garp-functional
Download grrr-amsterdam/garp-functional
More information about grrr-amsterdam/garp-functional
Files in grrr-amsterdam/garp-functional
Vendor grrr-amsterdam
Package garp-functional
Short Description Utility library embracing functional programming paradigms.
License BSD-3-Clause
Package garp-functional
Short Description Utility library embracing functional programming paradigms.
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package garp-functional
Garp Functional
Utility library embracing functional programming paradigms.
Developed with ❤️ by GRRR
Philosophy
Garp\Functional
is a practical functional library that strives to embrace functional paradigms.
- Functions are pure, referentially transparent, without side-effects.
- Data immutability is favored over mutating existing properties of given parameters.
- In general, functions are curried. Almost all of the functions in the library can be called partially applied, to a point where this makes sense.
- Function parameters are ordered to promote currying. Data is usually the last thing to go in,
making every function a fine candidate to pass to native
array_map
,array_filter
and the like, without having to create a closure around the call. - Higher-order functions are provided to fill the gaps. Functions like
compose
,partial
,partial_right
ornot
are legos for you to use in your own implementation. - Nothing is type-hinted too strictly. I don't care if you pass a
string or an array to
prop
, as long as it allows accessing members thru bracket syntax[]
, I'll allow it. Nothing irks me more about PHP than not being able to toss aTraversable
object into the nativearray_map
. - Typeclasses are added, broadening the applicability of the functions. Next to primitives, they will now work with your objects as well, so long as they implement the right interface.
Usage
Installation:
That'll do, all functions are available to you.
Read the docs for a complete reference
Thanks
This library is inspired by beautiful languages like Haskell and Clojure,
as well as the awesome RamdaJS library.
All versions of garp-functional with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
The package grrr-amsterdam/garp-functional contains the following files
Loading the files please wait ....