[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18209] Re: New array methods cycle, choice, shuffle (plus bug in cycle)

From: brabuhr@...
Date: 2008-08-08 21:11:26 UTC
List: ruby-core #18209
On Fri, Aug 1, 2008 at 5:16 PM, Jim Weirich <jim.weirich@gmail.com> wrote:
> I _could_ live with:
>
>   arr.sample    => n
>   arr.sample(1) => [n]
>   arr.sample(3) => [n, n, n]
>
> In general, I will state my objection to methods that return different
> things (different in terms of duck-typing) depending on the *value* of their
> arguments.

So, how do you feel about:

  arr.sample(3, 2) => [[n,n,n], [n,n,n]]

:-)

In This Thread

Prev Next