るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.033秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:permutation[x] > バージョン:2.2.0[x] > クラス:Enumerator[x]

別のキーワード

  1. array permutation
  2. matrix permutation?
  3. _builtin permutation
  4. array repeated_permutation
  5. _builtin repeated_permutation

検索結果

Enumerator#size -> Integer | Float::INFINITY | nil (28.0)

self の要素数を返します。

...self の要素数を返します。

要素数が無限の場合は Float::INFINITY を返します。
Enumerator
.new に Proc オブジェクトを指定していた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。

/...
.../emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 94109400
loop.size # => Float::INFINITY
(1..100).drop_while.size # => nil
//}

@see Enumerator.new...