PHP » GoLang |
login |
register |
about
|
GoLang Ds\Deque::reduce
request it (384)
GoLang replacement for PHP's Ds\Deque::reduce
[edit | history]
Ds\Deque::reduce(PECL ds >= 1.0.0) Ds\Deque::reduce — Reduces the deque to a single value using a callback function DescriptionReduces the deque to a single value using a callback function. Parameters
Return ValuesThe return value of the final callback. ExamplesExample #1 Ds\Deque::reduce() with initial value example
<?php The above example will output something similar to: int(30) Example #2 Ds\Deque::reduce() without an initial value example
<?php The above example will output something similar to: int(21) |
more
Recently updated
more
Most requested
more
Last requests
|