Ds\Deque::reduce
Ds\Deque::reduce
(PECL ds >= 1.0.0)
Ds\Deque::reduce — Reduces the deque to a single value using a callback function.
Description
public mixed Ds\Deque::reduce ( callable $callback [, mixed $initial ] )
Reduces the deque to a single value using a callback function.
Parameters
-
callback
-
mixed callback ( mixed $carry , mixed $value )
-
carry
-