[#84280] [Ruby trunk Bug#14181] hangs or deadlocks from waitpid, threads, and trapping SIGCHLD — nobu@...
Issue #14181 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/12/15
[#84398] [Ruby trunk Bug#14220] WEBrick changes - failures on MSWIN, MinGW — Greg.mpls@...
Issue #14220 has been reported by MSP-Greg (Greg L).
3 messages
2017/12/22
[#84472] Re: [ruby-dev:50394] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\ — Eric Wong <normalperson@...>
Shouldn't English posts be on ruby-core instead of ruby-dev?
3 messages
2017/12/26
[ruby-core:84051] [Ruby trunk Misc#14147] Array#sample documentation is unclear about order
From:
shevegen@...
Date:
2017-12-02 01:03:08 UTC
List:
ruby-core #84051
Issue #14147 has been updated by shevegen (Robert A. Heiler).
I agree; I think the documentation should mention that at http://ruby-doc.org/core/Array.html#method-i-sample. One can look at the source there :) but ... I guess more people will understand an explanation of the code, rather than the C code itself. :D
----------------------------------------
Misc #14147: Array#sample documentation is unclear about order
https://bugs.ruby-lang.org/issues/14147#change-68138
* Author: StefanPochmann (Stefan Pochmann)
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Does `Array#sample` only guarantee a random subset, or also random order? It's not clear. I think the current reference implementation does produce random order, but the documentation doesn't guarantee it, so I can't rely on it. If random order is intended, I think the documentation should say so. Maybe say that `sample(n)` is equivalent to `shuffle.take(n)`? ("equivalent" meaning same possible outputs with same probabilities)
More details here: https://stackoverflow.com/q/47600931/1672429
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>