るりまサーチ

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

別のキーワード

  1. json state
  2. random state
  3. _builtin state
  4. state []
  5. state []=

ライブラリ

検索結果

<< < ... 9 10 11 >>

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

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

Enumerable#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
# => [[1, 2], [3, 4, 5], [6...
<< < ... 9 10 11 >>