るりまサーチ (Ruby 2.1.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.057秒)
トップページ > クエリ:_builtin[x] > バージョン:2.1.0[x] > クエリ:stat[x] > クエリ:Stat[x] > クエリ:slice_before[x] > クラス:Enumerator::Lazy[x]

別のキーワード

  1. _builtin stat
  2. pathname stat
  3. csv stat
  4. gc stat
  5. stat writable_real?

ライブラリ

検索結果

Enumerator::Lazy#slice_before(initial_state) {|elt, state| bool } -> Enumerator::Lazy (79615.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 }.t...