Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
Widmogrod
FantasyLand
Foldable
PHP Interface Widmogrod\FantasyLand\Foldable
显示文件
Open project: widmogrod/php-functional
Interface Usage Examples
Public Methods
Method
Description
reduce
(
callable
$function
,
mixed
$accumulator
) :
mixed
reduce :: (b -> a -> b) -> b -> b
Method Details
reduce()
public
method
reduce :: (b -> a -> b) -> b -> b
public
reduce
(
callable
$function
,
mixed
$accumulator
) :
mixed
$function
callable
Binary function ($accumulator, $value)
$accumulator
mixed
Value to witch reduce
return
mixed
Same type as $accumulator