115件ヒット
[101-115件を表示]
(0.011秒)
種類
- インスタンスメソッド (84)
- 文書 (19)
- クラス (12)
ライブラリ
- ビルトイン (96)
クラス
-
Enumerator
:: Lazy (48)
モジュール
- Enumerable (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Lazy (12)
-
NEWS for Ruby 2
. 6 . 0 (7) - lazy (12)
-
take
_ while (24)
検索結果
-
Enumerator
:: Lazy # take _ while {|item| . . . } -> Enumerator :: Lazy (40.0) -
Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。
...
Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.zip(('a'..'z').cycle).take_while { |e| e.first < 100_000 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a"........"z":cycle>)>:take_while>
1.step.lazy.zip(('a'..'z').cycle).take_while { |e| e.first < 100_000 }.force.last(5)
# => [[99995, "y"], [99996, "z"], [99997, "a"], [99998, "b"], [99999, "c"]]
//}
@see Enumerable#take_while... -
Enumerator
:: Lazy (18.0) -
map や select などのメソッドの遅延評価版を提供するためのクラス。
...er, slice_when
* chunk
* zip (※互換性のため、ブロックを渡さないケースのみlazy)
Lazyオブジェクトは、Enumerable#lazyメソッドによって生成されます。
Lazyから値を取り出すには、Enumerator::Lazy#force または
Enumerable#first を呼びます。......nk, chunk_while
* uniq
* zip (※互換性のため、ブロックを渡さないケースのみlazy)
Lazyオブジェクトは、Enumerable#lazyメソッドによって生成されます。
Lazyから値を取り出すには、Enumerator::Lazy#force または
Enumerable#first を呼びます。......hile
* uniq
* compact
* zip (※互換性のため、ブロックを渡さないケースのみlazy)
Lazyオブジェクトは、Enumerable#lazyメソッドによって生成されます。
Lazyから値を取り出すには、Enumerator::Lazy#force または
Enumerable#first を呼びます。...