From: usa@... Date: 2017-03-25T17:36:37+00:00 Subject: [ruby-core:80341] [Ruby trunk Bug#13161] [DOC] Enumerable#{min, min_by, max, max_by} didn't mention they return a sorted array Issue #13161 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: DONE to 2.2: DONE, 2.3: DONE, 2.4: DONE ruby_2_2 r58112 merged revision(s) 57434. ---------------------------------------- Bug #13161: [DOC] Enumerable#{min,min_by,max,max_by} didn't mention they return a sorted array https://bugs.ruby-lang.org/issues/13161#change-63822 * Author: eric_duminil (Eric Duminil) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] * Backport: 2.2: DONE, 2.3: DONE, 2.4: DONE ---------------------------------------- * Enumerable#{min,min_by,max,max_by} return a sorted array when +n+ argument is used. This isn't mentioned from the current documentation. * "minimum n elements" in Enumerable#max_by should be "maximum n elements" ---Files-------------------------------- 0001-DOC-Enumerable-min-min_by-max-max_by.patch (2.42 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: