Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
Widmogrod
FantasyLand
Foldable
PHP Interface Widmogrod\FantasyLand\Foldable
Datei anzeigen
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