| PHP » GoLang | login |
            register |
            
            about | 
| 
                             Ds\Set::reduce(PECL ds >= 1.0.0) Ds\Set::reduce — Reduces the set to a single value using a callback function DescriptionReduces the set to a single value using a callback function. Parameters
 Return ValuesThe return value of the final callback. ExamplesExample #1 Ds\Set::reduce() with initial value example 
<?phpThe above example will output something similar to: int(30) Example #2 Ds\Set::reduce() without an initial value example 
<?phpThe above example will output something similar to: int(21) | 
                    more
                     Most requested
 
                    more
                     Last requests
 |