るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dh p=
  5. dh p

キーワード

検索結果

Enumerator::Lazy#slice_after(pattern) -> Enumerator::Lazy (109.0)

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

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

//emlist[例][ruby]{
1.step.lazy.slice_after { |e| e % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007fd73980e6f8>:each>>

1.step.lazy.slice_after { |e| e % 3 == 0 }.take(5).force...

Enumerator::Lazy#slice_before(pattern) -> Enumerator::Lazy (109.0)

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

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

//emlist[例][ruby]{
1.step.lazy.slice_before { |e| e.even? }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007f9f31844ce8>:each>>

1.step.lazy.slice_before { |e| e % 3 == 0 }.take(5).force...