[#46309] [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "usa (Usaku NAKAMURA)" <usa@...>

13 messages 2012/10/29
[#46310] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — Tanaka Akira <akr@...> 2012/10/29

2012年10月29日 10:31 usa (Usaku NAKAMURA) <usa@garbagecollect.jp>:

[#46366] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "U.Nakamura" <usa@...> 2012/11/02

こんにちは、なかむら(う)です。

[#46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — KOSAKI Motohiro <kosaki.motohiro@...> 2012/11/02

>> とくに指定しなければ、default external は locale から設定されるので、

[ruby-dev:46266] [ruby-trunk - Feature #3647] Array#sample(n, replace=false)

From: "yhara (Yutaka HARA)" <redmine@...>
Date: 2012-10-25 09:03:43 UTC
List: ruby-dev #46266
Issue #3647 has been updated by yhara (Yutaka HARA).

Target version changed from 2.0.0 to next minor


----------------------------------------
Feature #3647: Array#sample(n, replace=false)
https://bugs.ruby-lang.org/issues/3647#change-31522

Author: mrkn (Kenta Murata)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: next minor


=begin
 Array#sample does not support sampling with replacement directly, so we must write codes like the following to obtain samples with replacement.
 
   samples_with_replacement = n.times.map { source.sample }
 
 If Array#sample has the argument for switching with/without replacement, we can write it as follow.
 
   samples_with_replacement = source.sample(n, true)
 
 The patch was attached.  Please consider to merge.
=end



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next