20件ヒット
[1-20件を表示]
(0.011秒)
ライブラリ
- ビルトイン (20)
クラス
-
Enumerator
:: Lazy (20)
検索結果
先頭2件
-
Enumerator
:: Lazy # slice _ after {|elt| bool } -> Enumerator :: Lazy (18143.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...rable#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).f......orce
# => [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], [13, 14, 15]]
//}
@see Enumerable#slice_after... -
Enumerator
:: Lazy # slice _ after(pattern) -> Enumerator :: Lazy (18143.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...rable#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).f......orce
# => [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], [13, 14, 15]]
//}
@see Enumerable#slice_after...