るりまサーチ

最速Rubyリファレンスマニュアル検索!
18件ヒット [1-18件を表示] (0.112秒)
トップページ > クエリ:i[x] > クエリ:filter[x] > クエリ:Filter[x] > クエリ:select[x] > クラス:Enumerator::Lazy[x]

別のキーワード

  1. csv filter
  2. tracer add_filter
  3. _builtin filter
  4. _builtin filter!
  5. socket so_detach_filter

ライブラリ

検索結果

Enumerator::Lazy#filter {|item| ... } -> Enumerator::Lazy (30356.0)

Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。

...e#select と同じですが、配列ではなくEnumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:fin...
...d_all>

1.step.lazy.select { |i| i.even? }.take(10).force
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}

@see Enumerable#select...

Enumerator::Lazy#select {|item| ... } -> Enumerator::Lazy (24256.0)

Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。

...e#select と同じですが、配列ではなくEnumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:fin...
...d_all>

1.step.lazy.select { |i| i.even? }.take(10).force
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}

@see Enumerable#select...

Enumerator::Lazy#find_all {|item| ... } -> Enumerator::Lazy (12156.0)

Enumerable#select と同じですが、配列ではなくEnumerator::Lazy を返します。

...e#select と同じですが、配列ではなくEnumerator::Lazy を返します。

@raise ArgumentError ブロックを指定しなかった場合に発生します。

//emlist[例][ruby]{
1.step.lazy.find_all { |i| i.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:fin...
...d_all>

1.step.lazy.select { |i| i.even? }.take(10).force
# => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
//}

@see Enumerable#select...