Download the PHP package zonuexe/functools without Composer
On this page you can find all versions of the php package zonuexe/functools. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zonuexe/functools
More information about zonuexe/functools
Files in zonuexe/functools
Download zonuexe/functools
More information about zonuexe/functools
Files in zonuexe/functools
Please rate this library. Is it a good library?
Informations about the package functools
Teto Functools
Functional toolbox for PHP
Installation
Composer
Features
Functools\Operator
- Operator Expression wrapper
- Binary operator
1 + 2
$a === "abc"
$date instanceof '\Datetime'
- Conditional operator
$cond ? $then : $else
- Lazy Conditional operator
$cond($v) ? $then($v) : $else($v)
(thunk) - Referential transparent version sorting array functions.
- You can
array_map(f::op('ksort'), $arrays)
! - Language-construct wrapper
echo
,print
,eval
,require
,require_once
,include
,include_once
- limited support:
array
,isset
,empty
Functools::partial(callable $callback, array $arguments, int $pos)
- Partial application for callable (
arary_map
friendly)
- Partial application for callable (
Functools::arity(callable $callback)
- Analyze arity(number of arguments) of
$callback
.
- Analyze arity(number of arguments) of
Functools::curry(callable $callback)
- Currying
$callback
object.
- Currying
Functools::op(string $symbol, [array $arguments, int $pos])
- Get callable object (and partial application.)
Functools::compose(callable $callback,...)
Functools::pipe(mixed $value, callable $callback...)
- Pipeline like functions composing
Functools::tuple(mixed $item,...)
- Make n-Tuple.
Functools::fix(callable $callback)
Functools::memoize(callable $callback, [array $cache])
- Function optimizer using Memoization.
- This feature will help in optimization of transparent reference explicit definition equation.
Iteration
This library does not have iterator. You will be able to combine it by selecting a favorite of iterator library.
- PHP
array
and functions - Underbar.php - A collection processing library for PHP, like Underscore.js.
- Ginq
- nikic\iter
Usage
Japanese version: http://qiita.com/tadsan/items/abc52f0739ab5b4e781b
Short syntax
f::partial()
f::op()
f::tuple()
f::fix()
f::memoize()
Copyright
see ./LICENSE
.
Functional toolbox
Copyright (c) 2015 USAMI Kenta <[email protected]>
Teto Kasane
I love Teto Kasane. (ja: Teto Kasane official site)
All versions of functools with dependencies
PHP Build Version
Package Version
No informations.
The package zonuexe/functools contains the following files
Loading the files please wait ....