るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.034秒)

別のキーワード

  1. enumerable min
  2. enumerable max_by
  3. enumerable min_by
  4. enumerable max
  5. enumerable reduce

ライブラリ

モジュール

検索結果

Enumerable#entries(*args) -> [object] (39107.0)

全ての要素を含む配列を返します。

...@param args each の呼び出し時に引数として渡されます。

//emlist[例][ruby]{
(1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7]
{ 'a'=>1, 'b'=>2, 'c'=>3 }.to_a #=> [["a", 1], ["b", 2], ["c", 3]]

require 'prime'
Prime.entries 10 #=> [2, 3, 5, 7]
//}...

Enumerable#to_a(*args) -> [object] (24007.0)

全ての要素を含む配列を返します。

...@param args each の呼び出し時に引数として渡されます。

//emlist[例][ruby]{
(1..7).to_a #=> [1, 2, 3, 4, 5, 6, 7]
{ 'a'=>1, 'b'=>2, 'c'=>3 }.to_a #=> [["a", 1], ["b", 2], ["c", 3]]

require 'prime'
Prime.entries 10 #=> [2, 3, 5, 7]
//}...