PHP » GoLang |
login |
register |
about
|
GoLang Ds\Sequence::reduce
request it (302)
GoLang replacement for PHP's Ds\Sequence::reduce
[edit | history]
Ds\Sequence::reduce(PECL ds >= 1.0.0) Ds\Sequence::reduce — Reduces the sequence to a single value using a callback function DescriptionReduces the sequence to a single value using a callback function. Parameters
Return ValuesThe return value of the final callback. ExamplesExample #1 Ds\Sequence::reduce() with initial value example
<?php The above example will output something similar to: int(30) Example #2 Ds\Sequence::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
|