別のキーワード
ライブラリ
- ビルトイン (388)
クラス
-
Enumerator
:: Lazy (262) - Integer (36)
- Numeric (57)
- Range (33)
キーワード
- % (14)
- chunk (24)
- collect (12)
- downto (12)
- drop (12)
-
drop
_ while (12) - filter (7)
-
filter
_ map (6) -
find
_ all (12) - force (12)
- map (12)
- reject (12)
- select (12)
-
slice
_ after (22) -
slice
_ before (36) -
slice
_ when (11) - take (12)
-
take
_ while (24) - times (12)
- upto (12)
- zip (24)
検索結果
先頭5件
- Enumerator
:: Lazy # take _ while {|item| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # zip(*lists) -> Enumerator :: Lazy - Enumerator
:: Lazy # chunk {|elt| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # chunk(initial _ state) {|elt , state| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # slice _ after {|elt| bool } -> Enumerator :: Lazy
-
Enumerator
:: Lazy # take _ while {|item| . . . } -> Enumerator :: Lazy (3125.0) -
Enumerable#take_while と同じですが、配列ではなくEnumerator::Lazy を返します。
...ではなく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'..... -
Enumerator
:: Lazy # zip(*lists) -> Enumerator :: Lazy (3125.0) -
Enumerable#zip と同じですが、配列ではなくEnumerator::Lazy を返します。
...なくEnumerator::Lazy を返します。
ただし一貫性のため、ブロック付きで呼び出した場合は Enumerable#zip と
同じ挙動になります。
//emlist[例][ruby]{
1.step.lazy.zip(('a'..'z').cycle)
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:zip(#<E......numerator: "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... -
Enumerator
:: Lazy # chunk {|elt| . . . } -> Enumerator :: Lazy (3119.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...umerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>
1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[false... -
Enumerator
:: Lazy # chunk(initial _ state) {|elt , state| . . . } -> Enumerator :: Lazy (3119.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...umerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.chunk{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x007f8bf18118f0>:each>>
1.step.lazy.chunk{ |n| n % 3 == 0 }.take(5).force
# => [[false... -
Enumerator
:: Lazy # slice _ after {|elt| bool } -> Enumerator :: Lazy (3119.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...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).force
#... -
Enumerator
:: Lazy # slice _ after(pattern) -> Enumerator :: Lazy (3119.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...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).force
#... -
Enumerator
:: Lazy # slice _ before {|elt| bool } -> Enumerator :: Lazy (3119.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...lice_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... -
Enumerator
:: Lazy # slice _ before(initial _ state) {|elt , state| bool } -> Enumerator :: Lazy (3119.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...lice_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... -
Enumerator
:: Lazy # slice _ before(pattern) -> Enumerator :: Lazy (3119.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...lice_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...