Ds\Deque::reduce

Ds\Deque::reduce

(PECL ds >= 1.0.0)

Ds\Deque::reduceReduces 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

登录查看完整内容