diff options
| author | bors <bors@rust-lang.org> | 2013-06-27 10:37:36 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-06-27 10:37:36 -0700 |
| commit | 9b6dfb85782a6ec50c39292626acf2c74b0ae754 (patch) | |
| tree | e76a0445582cae4f4e001cfa5f9e77bae38a10ae /src/rt/rust_kernel.cpp | |
| parent | 36527360a66024d0e3f971c0732efc52368afc8b (diff) | |
| parent | 8edb8f6d39498476f1124ce1bb5bb4e094bde43f (diff) | |
| download | rust-9b6dfb85782a6ec50c39292626acf2c74b0ae754.tar.gz rust-9b6dfb85782a6ec50c39292626acf2c74b0ae754.zip | |
auto merge of #7414 : gifnksm/rust/max_by, r=catamorphism
`max_by` method returns the element that gives the maximum value from the specfied function. `max_by`/`min_by` are convenient when you want to get the value which has greatest/smallest scores. Inspired by [ruby's Enumerable module](http://ruby-doc.org/core-2.0/Enumerable.html).
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
