110件ヒット
[101-110件を表示]
(0.197秒)
クラス
- Array (22)
-
Enumerator
:: Lazy (44) - Object (11)
モジュール
- Enumerable (33)
キーワード
- lazy (11)
-
pretty
_ print _ cycle (11) -
take
_ while (22) - zip (22)
検索結果
-
Enumerator
:: Lazy # zip(*lists) {|v1 , v2 , . . . | . . . } -> nil (3119.0) -
Enumerable#zip と同じですが、配列ではなくEnumerator::Lazy を返します。
...Enumerable#zip と同じですが、配列ではなくEnumerator::Lazy を返します。
ただし一貫性のため、ブロック付きで呼び出した場合は Enumerable#zip と
同じ挙動になります。
//emlist[例][ruby]{
1.step.lazy.zip(('a'..'z').cycle)
# => #<Enumerator::Lazy: #<......Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<Enumerator: "a".."z":cycle>)>
1.step.lazy.zip(('a'..'z').cycle).take(30).force.last(6)
# => [[25, "y"], [26, "z"], [27, "a"], [28, "b"], [29, "c"], [30, "d"]]
//}
@see Enumerable#zip...