クラス
-
ARGF
. class (88) - Array (165)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (118) - Hash (56)
- Prime (22)
モジュール
- Enumerable (199)
キーワード
- chunk (22)
-
chunk
_ while (11) - collect (11)
-
delete
_ if (22) - detect (22)
- each (66)
-
each
_ line (44) - filter (12)
- filter! (12)
- find (22)
-
find
_ all (22) -
find
_ index (66) - index (33)
-
keep
_ if (22) - lazy (22)
- map (11)
- partition (22)
- reject (44)
- reject! (22)
- rindex (33)
- select (22)
- select! (22)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10)
検索結果
先頭5件
- Enumerator
:: ArithmeticSequence # ==(other) -> bool - 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 # slice _ after(pattern) -> Enumerator :: Lazy
-
Enumerator
:: ArithmeticSequence # ==(other) -> bool (21101.0) -
Enumerable::ArithmeticSequence として等しいか判定します。
Enumerable::ArithmeticSequence として等しいか判定します。
other が Enumerable::ArithmeticSequence で
begin, end, step, exclude_end? が等しい時に
true を返します。
@param other 自身と比較する Enumerable::ArithmeticSequence -
Enumerator
:: Lazy # chunk {|elt| . . . } -> Enumerator :: Lazy (3149.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...unk と同じですが、配列ではなく 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, [1, 2]],... -
Enumerator
:: Lazy # chunk(initial _ state) {|elt , state| . . . } -> Enumerator :: Lazy (3149.0) -
Enumerable#chunk と同じですが、配列ではなく Enumerator::Lazy を返します。
...unk と同じですが、配列ではなく 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, [1, 2]],... -
Enumerator
:: Lazy # slice _ after {|elt| bool } -> Enumerator :: Lazy (3149.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...同じですが、配列ではなく 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
# => [[1, 2, 3],... -
Enumerator
:: Lazy # slice _ after(pattern) -> Enumerator :: Lazy (3149.0) -
Enumerable#slice_after と同じですが、配列ではなく Enumerator::Lazy を返します。
...同じですが、配列ではなく 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
# => [[1, 2, 3],... -
Enumerator
:: Lazy # slice _ when {|elt _ before , elt _ after| bool } -> Enumerator :: Lazy (3148.0) -
Enumerable#slice_when と同じですが、配列ではなく Enumerator::Lazy を返します。
...すが、配列ではなく Enumerator::Lazy を返します。
//emlist[例][ruby]{
1.step.lazy.slice_when { |i, j| (i + j) % 5 == 0 }
# => #<Enumerator::Lazy: #<Enumerator: #<Enumerator::Generator:0x00007fce84118348>:each>>
1.step.lazy.slice_when { |i, j| (i + j) % 5 == 0 }.take(5).force
# => [[... -
Enumerator
:: Lazy # slice _ before {|elt| bool } -> Enumerator :: Lazy (3144.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...じですが、配列ではなく 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
# => [[1, 2], [3,... -
Enumerator
:: Lazy # slice _ before(initial _ state) {|elt , state| bool } -> Enumerator :: Lazy (3144.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...じですが、配列ではなく 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
# => [[1, 2], [3,... -
Enumerator
:: Lazy # slice _ before(pattern) -> Enumerator :: Lazy (3144.0) -
Enumerable#slice_before と同じですが、配列ではなく Enumerator::Lazy を返します。
...じですが、配列ではなく 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
# => [[1, 2], [3,... -
Enumerator
:: Lazy # collect {|item| . . . } -> Enumerator :: Lazy (3143.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
...じですが、配列ではなくEnumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.step.lazy.col...