るりまサーチ

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

別のキーワード

  1. util u
  2. matrix u
  3. erb u
  4. lupdecomposition u
  5. _builtin koi8_u

ライブラリ

クラス

モジュール

検索結果

Enumerator::Lazy#compact -> Enumerator::Lazy (21218.0)

Enumerable#compact と同じですが、配列ではなく Enumerator::Lazy を返します。

...Enumerable#compact と同じですが、配列ではなく Enumerator::Lazy を返します。...

Enumerable#compact -> Array (21114.0)

self から nil を取り除いた配列を生成して返します。

...self から nil を取り除いた配列を生成して返します。

//emlist[][ruby]{
def with_nils
yield 1
yield 2
yield nil
yield 3
end

to_enum(:with_nils).compact # => [1, 2, 3]
//}

@see Array#compact...